Forums

Topic: Petit Computer

Posts 721 to 740 of 9,618

petitgamer

I wish they made it keyboard compatable so you don't have to tap with the stylus

3ds FC is 1934-1168-4523
fyi lucas is better than ness in any way shape or form.That is a coldhard fact.

petitgamer

hello sprite I need help with making stuff move I can't get it to work.
oh and yeah you're right DON'T DISS THE GOD OF PROGRAMING!!!!!!!!!!

3ds FC is 1934-1168-4523
fyi lucas is better than ness in any way shape or form.That is a coldhard fact.

GrabSomeEyes

@petitgamer ... use PTCUtilites or Notepad ++ or something. It isn't that hard to program through your computer.
http://micutil.com/ptcutilities/top_e.html
And you need to tell us how you're having problems, other wise we can't help you much.

Eos OS: http://conlogxl.forumotion.com/t12-eos-os-v10
3DS FC: 3695-0514-5044

petitgamer

my problem is I CAN'T PROGRAM GRABSOMEEYES

3ds FC is 1934-1168-4523
fyi lucas is better than ness in any way shape or form.That is a coldhard fact.

petitgamer

I'm going to post some battle sprites as soon as I figure out to post QR codes does anyone know?

[Edited by petitgamer]

3ds FC is 1934-1168-4523
fyi lucas is better than ness in any way shape or form.That is a coldhard fact.

Sprite

Then learn to and come back later

Sprite

portealmario

what circumstances make "VAL" an illegal function call?

[Edited by portealmario]

meng 😐
3ds friend code:1762-2769-7142

Sprite

I belive it stands for string

Sprite

Eel

VAL transforms strings to numeric.

Example:
NUMBER=VAL(STRING$)

I guess using a numeric variable on it or something else will make it fail.

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

ramstrong

Discostew wrote:

portealmario wrote:

Ok, so is there any possible way to save various variable to MEM$?

Here is my idea on the matter. You can combine a bunch of strings together into a single string (convert numbers to strings with STR$), and separate each one in the final string with a character you wouldn't use.

That looks to be an overly complicated solution to a simple problem. I like Morphtroid solution better. Then again, I'm a simpleton. If it's not simple, I'm not interested. Check out my implementation of Morphtroid Algorithm. It's doable in 6 lines.

Keeping in mind that a variable, ignoring negative, is 6 digit max, we can fit 42 values in a string, so let's do that. MEMVAR[] is the array to hold all variables.

'Init
DIM MEMVAR[42]
MEM$="x"*256

'SAVE
FOR I=0 TO 41:MEM$=SUBST$(MEM$,I*6,6,RIGHT$("000000"+STR$(MEMVAR[I]),6)):NEXT
SAVE "MEM:TEST1"

'LOAD
LOAD "MEM:TEST1"
FOR I=0 TO 41:MEMVAR[I]=VAL(MID$(MEM$,I*6,6)):NEXT

Alternatively,
'SAVE
MEM$="":FOR I=0 TO 41:MEM$=MEM$+RIGHT$("000000"+STR$(MEMVAR[I]),6):NEXT

[Edited by ramstrong]

Petit Computer Journal
Old site http://ramstrong.blogspot.com

Let's just call a spade, a spade.

ramstrong

portealmario wrote:

what circumstances make "VAL" an illegal function call?

Don't know. I got Missing operand, Type Mismatch, and Syntax Error. Illegal function call probably means the error lies somewhere else. Can you post a short code, preferably less than 7 lines, that duplicates the error?

Petit Computer Journal
Old site http://ramstrong.blogspot.com

Let's just call a spade, a spade.

Eel

This is a nifty idea I read on another forum:
You can also save data with GRP files! (that's the correct file type, right?)
Colors range from 0 to 255, more than enough space for you to assing a color for each number from 0 to 9 and each character from A to Z and other things.
GRP files have enough space for 255*191 pixels, that's 191 times the space you have in a MEM file.

Just put pixels on the screen in the correct order and save them as a GRP file, then you can load it and decipher it back to numbers and strings.

It's slower and harder, but it sounds so cool.

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

Discostew

ramstrong wrote:

That looks to be an overly complicated solution to a simple problem.

Yeah, it was more of a general idea that anyone could use without having to know the length of data or at what character position in the string. Just a combiner for saving, and a parser for loading.

Discostew

Switch Friend Code: SW-6473-2521-3817

portealmario

Oh yea! I just found a very well done 3D game called "raycaster" made on petit computer! I figured out how to edit the map! Just a little added to this could make a "petitcraft" in 3D! I can make rooms and shaped and various other things by editing thhe map, you should try! 1=block, 0=air. Goto @mapdata

[Edited by portealmario]

meng 😐
3ds friend code:1762-2769-7142

portealmario

@ramstrong sample code:
A=VAL(MID$(MEM$,16,20))

Error:
"Illegal function call (45,VAL)"

Edit:
I'm probably going to just scrap the memory saving feature for now and work on other features(like a botton based menu system). i am also working on some console games, which I will make sure I master before I start using sprites.

[Edited by portealmario]

meng 😐
3ds friend code:1762-2769-7142

portealmario

I am having trouble with a jumping mechanism and gravity in ny game, any suggestions?

meng 😐
3ds friend code:1762-2769-7142

Spagem

I may just make sprites. DX I can't use BASIC. Only JavaScript.

Spagem

My Nintendo: Spagem

Sprite

I was programing today and was so used to saving my program I overwrited all my data on the the programing. I am trying to recreate it. Good news is I don't have to rewrite screens and sprites the longest part.

Sprite

Sorry, this topic has been locked.