DSiWare Forum

Topic: Petit Computer

Showing 8,021 to 8,040 of 9,299

AuthorMessage
Avatar

Discostew

8,021. Posted:

@0Games Here's another idea. Are you using VISIBLE at any point?

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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

AuthorMessage
Avatar

JLMan

8,022. Posted:

bigdog00 wrote:

Someone please give me an update on what I missed. I couldn't put it down and now I am writing a zombies game (top down) for it. I started writing it on the computer, but then ported it over for petit computer. My only problem is that I can make a list of zombies on the PC but I have to make every single variable for every zombie and make ZHLT(health) ZX(Zombie X) ZY(Zombie Y) ZACTIVE(If the zombie is alive) and stuff like that. can I make a list for them instead? and, did I miss any important posts or new games worth scanning or what? Please fill me in and thanks!

You could do make your zombie variables arrays. For exmple, ZX(5) could be equal to the 6th zombie X position.

You want to stop the rebelion of the Blue? Go ahead. Try. You already lost.

AuthorMessage
Avatar

GraphicGenius

8,023. Posted:

Hey guys, what's wrong with this?:
IF SPHITSP(0,1)=FALSE THEN GOTO @MOVE:IF SPHITSP(2,1)=FALSE GOTO @MOVE
I have assigned the sprites and I put the @label but it gives me a Syntax Error every time.

"UGGGHHHHHHHHH I'm such a loser!" -PuppyCat from Cartoon Hangover
That explains my LIFE.

3DS Friend Code: 1478-3545-5136 | Nintendo Network ID: GreatGamer123

AuthorMessage
Avatar

Discostew

8,024. Posted:

GraphicGenius wrote:

Hey guys, what's wrong with this?:
IF SPHITSP(0,1)=FALSE THEN GOTO @MOVE:IF SPHITSP(2,1)=FALSE GOTO @MOVE
I have assigned the sprites and I put the @label but it gives me a Syntax Error every time.

'=' is for assigning
'==' is for comparing.

Use the latter in IF statements

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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

AuthorMessage
Avatar

Slayer

8,025. Posted:

Discostew wrote:

@0Games Here's another idea. Are you using VISIBLE at any point?

No, I never used VISIBLE.

"When the men ran dry of ammunition, they used their blades. And when the
blades ran dull, they used their hands."
Elias, Call of Duty Ghosts
Accents I know: British
Accents I'm working on: Irish, Scottish

AuthorMessage
Avatar

GraphicGenius

8,026. Posted:

@Discostew Thanks!
I already knew that I must of just forgot it in my game.
Plus, how do you check if a number is odd or even?

Edited on by GraphicGenius

"UGGGHHHHHHHHH I'm such a loser!" -PuppyCat from Cartoon Hangover
That explains my LIFE.

3DS Friend Code: 1478-3545-5136 | Nintendo Network ID: GreatGamer123

AuthorMessage
Avatar

TAINT_Zzyex

8,027. Posted:

Knock it off — TBD

Edited on by theblackdragon

"Did somebody say Aincrad?"
"No, go back to your own game!"
"awwww"
"And make out with Asuna."
"Aww-I mean YAY"

Twitter: MetricCat

AuthorMessage
Avatar

Slayer

8,028. Posted:

TAINT_Zzyex wrote:

Knock it off — TBD

I'm not sure what that was before...
I'm curious though...

"When the men ran dry of ammunition, they used their blades. And when the
blades ran dull, they used their hands."
Elias, Call of Duty Ghosts
Accents I know: British
Accents I'm working on: Irish, Scottish

AuthorMessage
Avatar

Discostew

8,029. Posted:

0Games wrote:

TAINT_Zzyex wrote:

Knock it off — TBD

I'm not sure what that was before...
I'm curious though...

TBQH, I thought that was a name of a new game, "Knock it off" - TBD (To Be Decided), but then I saw that theblackdragon had edited the post.

Anyways, about your problem with console printing. I've examined many different aspects related to the console printing to see if one of them is the cause, and with no success, I think it's time we see the code. If you don't want to make it public, you could sent it to me directly via my email shown on my website.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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

AuthorMessage
Avatar

Slayer

8,030. Posted:

Discostew wrote:

0Games wrote:

TAINT_Zzyex wrote:

Knock it off — TBD

I'm not sure what that was before...
I'm curious though...

TBQH, I thought that was a name of a new game, "Knock it off" - TBD (To Be Decided), but then I saw that theblackdragon had edited the post.

Anyways, about your problem with console printing. I've examined many different aspects related to the console printing to see if one of them is the cause, and with no success, I think it's time we see the code. If you don't want to make it public, you could sent it to me directly via my email shown on my website.

It might take a while, but I'll make it work. I'm fine with showing it here. I'll post it later because I'm busy right now.

"When the men ran dry of ammunition, they used their blades. And when the
blades ran dull, they used their hands."
Elias, Call of Duty Ghosts
Accents I know: British
Accents I'm working on: Irish, Scottish

AuthorMessage
Avatar

Slayer

8,031. Posted:

Here it is. I also designed a box and made intro text not interfering with the code, but here it is excluding the intro-
'Game prep
CLS
B=BTRIG()
PNLTYPE "OFF"
@MAINMENU
CLS
X=0:Y=1
@CURSOR
CLS
LOCATE 0,0:?"Apocalypse Rising Alpha 1.0"
LOCATE 1,1:?"New Game"
LOCATE 1,2:?"Load Game"
LOCATE X,Y:?">"
B=BUTTON(1)
IF (B AND 1) THEN Y=Y-1
IF (B AND 2) THEN Y=Y+1
IF Y>2 THEN Y=1
IF Y<1 THEN Y=2
IF B AND 16 THEN GOTO @NEWGAME
This isn't part of my code, but the Load Game feature won't be implemented in this first version. Just for clarification.
VSYNC 1
GOTO @CURSOR
'New game
CLS
@NEWGAME
@SURVIVESP
LOAD"SCU0:SURVIVE"
LOAD"SPU1:SHM19R"
SPSET 0,64,2,0,0,0
SPOFS 0,12,12
LOCATE 0,0:?"100"
That's where it didn't print the text.
'Controls
CLS
@CONTROLS
IF BTRIG()==1 GOTO @UP
IF BTRIG()==2 GOTO @DOWN
IF BTRIG()==4 GOTO @LEFT
IF BTRIG()==8 GOTO @RIGHT
GOTO @CONTROLS
@UP
SPREAD(0),X,Y
SPOFS 0,X,Y-13, 30
GOTO @CONTROLS
@DOWN
SPREAD(0),X,Y
SPOFS 0,X,Y+13, 30
GOTO @CONTROLS
@LEFT
SPREAD(0),X,Y
SPOFS 0,X-13,Y,30
SPANIM 0,4,15,0
GOTO @CONTROLS
@RIGHT
SPREAD(0),X,Y
SPOFS 0,X+13,Y,30
SPANIM 0,4,72,0
GOTO @CONTROLS
Well, that's it. Just 68 lines, not too lengthy (at least compared to everyone else's games, am I right?).
EDIT: Sorry for the double post, by the way.

Edited on by Slayer

"When the men ran dry of ammunition, they used their blades. And when the
blades ran dull, they used their hands."
Elias, Call of Duty Ghosts
Accents I know: British
Accents I'm working on: Irish, Scottish

AuthorMessage
Avatar

Discostew

8,032. Posted:

0Games wrote:

LOCATE 0,0:?"100"
That's where it didn't print the text.
'Controls
CLS

There's your problem. You're clearing the screen right after you print, which bring me back to one of the first questions.

Discostew wrote:

Are you using CLS at any point after that line?

Edited on by Discostew

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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

AuthorMessage
Avatar

Slayer

8,033. Posted:

Discostew wrote:

0Games wrote:

LOCATE 0,0:?"100"
That's where it didn't print the text.
'Controls
CLS

There's your problem. You're clearing the screen right after you print, which bring me back to one of the first questions.

Discostew wrote:

Are you using CLS at any point after that line?

OH, I see. I should've seen that a mere comment seperated the two, which wouldn't stop the program from erasing the text immediately.
Edit: I've fixed it now. 100 displays in the top corner of the screen, and once I have zombies from Hansausage I can direct the program to decrease health when a zombie touches the survivor and eventually program death. Thanks, Discostew. I wouldn't have seen that.

Edited on by Slayer

"When the men ran dry of ammunition, they used their blades. And when the
blades ran dull, they used their hands."
Elias, Call of Duty Ghosts
Accents I know: British
Accents I'm working on: Irish, Scottish

AuthorMessage
Avatar

Bluerobin2

8,034. Posted:

@0Games a health bar would look better imo.

Houston, We have a Syntax Error.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

GraphicGenius

8,035. Posted:

How do you check if a number is odd or even?

"UGGGHHHHHHHHH I'm such a loser!" -PuppyCat from Cartoon Hangover
That explains my LIFE.

3DS Friend Code: 1478-3545-5136 | Nintendo Network ID: GreatGamer123

AuthorMessage
Avatar

LeviCelJir

8,036. Posted:

Hey guys today Ima tell ya a project I am working on. TERRARIA DS! (WOOHOO)
Here's what I have so far:
Terrain generator, block building and breaking, kinda working saving, terraria music, and terraria block sprites. (making more today) I hope yall are excited for this project.
And Twin (like always) made this project possible so thanks twin!
That's it for now!

My 3ds Friend Code: 3625-8498-4946.(Tell Me If You Added Me)---"When Freaky Aliens Give You Lemons, Make Freaky Alien Lemonade."---W2 FC:5115 1708 3491---Currents Projects: Cookie Clicker Petit Computer Edition (http://petitcomputer.wikia.com/wiki/Cookie_Clicker_Petit_Computer_Edition), RAYSCARE

AuthorMessage
Avatar

iprice

8,037. Posted:

Screenies or it didn't happen ;) :P

I code, therefore I am.

AuthorMessage
Avatar

LeviCelJir

8,038. Posted:

iprice wrote:

Screenies or it didn't happen ;) :P

Hahaha Some people don't have cameras that take high quality pictures. I could try though. But I would probably post it in a blog before I post it here. Plus my computer is getting sent in for repairs so it would be hard to make qrs

My 3ds Friend Code: 3625-8498-4946.(Tell Me If You Added Me)---"When Freaky Aliens Give You Lemons, Make Freaky Alien Lemonade."---W2 FC:5115 1708 3491---Currents Projects: Cookie Clicker Petit Computer Edition (http://petitcomputer.wikia.com/wiki/Cookie_Clicker_Petit_Computer_Edition), RAYSCARE

AuthorMessage
Avatar

iprice

8,039. Posted:

I doubt there's anyone that doesn't have access to a single digital camera nowadays. They are everywhere.

Photos (or vids) don't have to be high quality - all we want to see is actual work in progress.

I code, therefore I am.

AuthorMessage
Avatar

Bluerobin2

8,040. Posted:

GraphicGenius wrote:

How do you check if a number is odd or even?

IF number%2!=0 THEN (number is odd)

Houston, We have a Syntax Error.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126