Forums

Topic: Petit Computer

Posts 721 to 740 of 9,620

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 on 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

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens.
Friend Code: 1075-1228-4183

portealmario

what circumstances make "VAL" an illegal function call?

Edited on by portealmario

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

Sprite

I belive it stands for string

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens.
Friend Code: 1075-1228-4183

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 | Nintendo Network ID: 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 on by ramstrong

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

Let's just call a spade, a spade.

3DS Friend Code: 1091-7596-4855

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.

3DS Friend Code: 1091-7596-4855

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 | Nintendo Network ID: 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

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

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 on 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 on 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

3DS Friend Code: 2406-5638-4729 | My Nintendo: Spagem | Nintendo Network ID: smp1998

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.

I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens.
Friend Code: 1075-1228-4183

Please login or sign up to reply to this topic