Forums

Topic: Petit Computer

Posts 5,141 to 5,160 of 9,618

randomous

@Bluerobin2 If you've already got the COL file laying around, you can load it into one of 3 palette sets: SPU, BGU, or GRP.

LOAD "COL0:NAME" will load the color palette into the BG colors
LOAD "COL1:NAME" will load the color palette into the SP colors
LOAD "COL2:NAME" will load the color palette into the GRP colors

randomous

Ralph

ramstrong wrote:

Hairmanban19 wrote:

Now i'm having trouble with being able to walk in my game. Heres my code:@MOVE
IF BTRIG()==4 GOTO@LEFT
IF BTRIG()==8 GOTO@RIGHT
GOTO@MOVE
@LEFT
SPREAD(0)X,Y
SPOFS 0,X-16,Y,60
GOTO@MOVE
@RIGHT
SPREAD(0)X,Y
SPOFS 0,X+16,Y,60
GOTO@MOVE
Please tell me what i'm doing wrong. It says missing opperand(SPREAD).

You need comma after the parenthesis. SPREAD(0),X,Y
You also need to set the sprite with SPSET before you use it. Read Help Menu #37 and #39 for SPSET and SPREAD() respectively.

I'm still annoyed that Europe didn't get the same help section.

[Edited by Ralph]

Ralph

BonChoi

What do you guys want in Minecraft DS? I'm not promising I'll code it, but it will be a thing to think about to me.

Programmer for Minecraft DS!

Press B!

Slayer

Okay... Should I give you guys the Ranger class in alpha 1.0? It's a little unfair that everyone that plays this first version of the game gets WARRIOR ONLY. So I'm considering adding the second class early. Good move or not?
Or should I say...
Deal or no deal?
Edit: It's not even much of an impact on ME. It's just some sprites, some more code for the bow shots, that's pretty much it.

[Edited by Slayer]

I have nothing really to say about myself.

BonChoi

@slayer hmmm... I think you should add the Ranger.

Programmer for Minecraft DS!

Press B!

InsertPi

Ok guys, so that I'm not spamming about Minecraft DS, the new forum for MCDS is here! All talk about Minecraft DS should be here.
@BonChoi what all commands do you know in PTCom? I noticed you just joined the forums... I prefer you learn DATA, MID$, GRP saving, everything about graphics, algorithms, and at least Pre-Algebra if you don't know about them already. This program includes all of those excessively.

[Edited by InsertPi]

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

Eel

IAmAPerson wrote:

Ok guys, so that I'm not spamming about Minecraft DS, the new forum for MCDS is here! All talk about Minecraft DS should be here.
@BonChoi what all commands do you know in PTCom? I noticed you just joined the forums... I prefer you learn DATA, MID$, GRP saving, everything about graphics, algorithms, and at least Pre-Algebra if you don't know about them already. This program includes all of those excessively.

Talking about your petit computer game in the petit computer thread is not spamming.

Quite the contrary, your thread has a chance of being closed because.... If one of our games gets a thread, what stops us from creating threads for all of them?

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

BonChoi

DATA I know. I'm just rusty on it. I don't know about MID$ and I am learning GRP saving. Pre-algebra I know at least to a certain extent (PLEASE don't ask me where that extent is)

Programmer for Minecraft DS!

Press B!

ChangeV

There is a way to detect select button.

If you press and hold the select button and run the program, the program will not stop.
(of course, if you let go the button and press select button again, it will stop program.)

You can use button() to read the button value. it is 2048.

Its usage limited since select button can only be detected at the beginning.
But, it can be used to activate secret hidden stuff at the start up such as debug mode, invincibility, or uninstall menu.

At the beginning of program, check BUTTON()
And if select button is detected, set some flag variable and use the flag variable in the program.

IF BUTTON() AND 2048 THEN SELECT_PRESSED=TRUE

Here is uninstall example using select button trick.

Untitled

If you run normally, it will play the Exerion look-alike.(ground pattern is from my old project. ship and mountain sprites are from arcade version)

If you hold select and run, program will GO TO @UNINSTALL section I made.
It will display uninstall menu with list of resource files used in game.
Then it will ask for deleting resources(ship sprites, mountain sprites, and ground patterns tile) then the program itself.
After go back to gallery menu, uninstall operation is completed and the program and its resources are removed from petit computer.

ChangeV

InsertPi

Morphtorok wrote:

IAmAPerson wrote:

Ok guys, so that I'm not spamming about Minecraft DS, the new forum for MCDS is here! All talk about Minecraft DS should be here.
@BonChoi what all commands do you know in PTCom? I noticed you just joined the forums... I prefer you learn DATA, MID$, GRP saving, everything about graphics, algorithms, and at least Pre-Algebra if you don't know about them already. This program includes all of those excessively.

Talking about your petit computer game in the petit computer thread is not spamming.

Quite the contrary, your thread has a chance of being closed because.... If one of our games gets a thread, what stops us from creating threads for all of them?

I just didn't want to spam this thread and annoy the crap out of people who don't play the game. If you don't mind all the updates, then I'll just take the other down. Is that alright?

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

InsertPi

BonChoi wrote:

DATA I know. I'm just rusty on it. I don't know about MID$ and I am learning GRP saving. Pre-algebra I know at least to a certain extent (PLEASE don't ask me where that extent is)

I did say "preferably" on te math. It just makes it easier. You can still do it as log as you know about the four basic operators and variables, it's just the more you know, the easier it is. I'll explain MID$ later. It can get complicated...

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

Slayer

I guess I'll just call the file GLAD and release it like that every update...
I need to load that sprite.
Okay, so as far as this, it's the best I've got. Apocalypse Rising has no sprites so I went back to Gladiators.
SPSET needs to be there in order to load the custom sprite. I need the first red-haired sprite location, so I can use it in SPOFS for the custom sheet.
I have the rest handled.
@BonChoi Okay, I'm adding the Ranger. Alright, I think I need a little help on sprite details, is one CHR file an entire custom sprite sheet or just one custom sprite? If I'm asking too much, I'm sorry...

[Edited by Slayer]

I have nothing really to say about myself.

Eel

IAmAPerson wrote:

Morphtorok wrote:

IAmAPerson wrote:

Ok guys, so that I'm not spamming about Minecraft DS, the new forum for MCDS is here! All talk about Minecraft DS should be here.
@BonChoi what all commands do you know in PTCom? I noticed you just joined the forums... I prefer you learn DATA, MID$, GRP saving, everything about graphics, algorithms, and at least Pre-Algebra if you don't know about them already. This program includes all of those excessively.

Talking about your petit computer game in the petit computer thread is not spamming.

Quite the contrary, your thread has a chance of being closed because.... If one of our games gets a thread, what stops us from creating threads for all of them?

I just didn't want to spam this thread and annoy the crap out of people who don't play the game. If you don't mind all the updates, then I'll just take the other down. Is that alright?

That's what this thread is for!

However, if you feel you're being too intrusive with your updates, there's always the petit computer wiki, you can have a blog there and I'm sure even more people will check it out.

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

swordx

Kk, I fixed the quest log crash glitch in Dungeon Adventure. It was as simple as me using the AND command twice. Also, as I suspected, the taking of your money w/o getting the item when buying in a shop is merely a result of me being lazyyyy. There's a per-item cap, but there's nothing to notify you of the cap. I'll add the notification (along with saves) in 1.1.

swordx

BonChoi

Does anyone know a command that chooses a random number between a set of numbers? (i.e 12345 the command chooses 3

Programmer for Minecraft DS!

Press B!

Eel

BonChoi wrote:

Does anyone know a command that chooses a random number between a set of numbers? (i.e 12345 the command chooses 3

I don't think there's a command that chooses a number from a string of numbers. But there's RND(X), which chooses a random dumber between 0 and X. Combine it with FLOOR(X) for better results.

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

InsertPi

BonChoi wrote:

Does anyone know a command that chooses a random number between a set of numbers? (i.e 12345 the command chooses 3

Use RND command.

VAR=RND(50)

Chooses a random number between 0 and 50.

@LOOP
VAR=RND(100)
IF VAR<50 THEN @LOOP

Chooses a number between 50 and 100

For a string, do this (I'm gonna use MID$)

INPUT STRING$
DIM STRINGPART$(LEN(STRING$))
FOR I=0 TO LEN(INPUT)
STRINGPART$(I)=MID$(STRING$,I,1)
NEXT
RANDOMPART$=STRINGPART$(RND(LEN(STRING)))

Now, if STRING$ is "Hello", then it will choose randomly between the letters

[Edited by InsertPi]

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

BonChoi

Thanks

Programmer for Minecraft DS!

Press B!

InsertPi

Morphtorok wrote:

IAmAPerson wrote:

@LOOP
VAR=RND(100)
IF VAR<50 THEN @LOOP

Chooses a number between 50 and 100

That would possibly lag the game if it's done repeatedly. You could instead use

Var=50+rnd(50)

I never find a problem with it, but good point

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

Sorry, this topic has been locked.