Forums

Topic: Petit Computer

Posts 6,561 to 6,580 of 9,676

InsertPi

programmerpro wrote:

IAmAPerson wrote:

If you wish for more, just ask!

I would like to know more, like how you can do stuff like drawing.

You simply do GPAGE 1, take the TCHX and TCHY system variables, and use those for where you draw! For example:

ACLS:CLEAR:GPAGE 1:GCOLOR 15
PRINT "Touch a place on the screen, and a dot will appear there!"
@LOOP
IF TCHST==1 THEN GPSET TCHX,TCHY
VSYNC 1
GOTO @LOOP

Also, what else would you like to know? You said more, not just drawing.

@Bluerobin2 YAY! I've been waiting for SmallMath! (If I count it as a full coding language, it'll be the 6th programming language I will have learned)

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

Nintendo Network ID: IAmAPerson620 | Twitter:

GraphicGenius

IAmAPerson wrote:

programmerpro wrote:

IAmAPerson wrote:

If you wish for more, just ask!

I would like to know more, like how you can do stuff like drawing.

You simply do GPAGE 1, take the TCHX and TCHY system variables, and use those for where you draw! For example:

ACLS:CLEAR:GPAGE 1:GCOLOR 15
PRINT "Touch a place on the screen, and a dot will appear there!"
@LOOP
IF TCHST==1 THEN GPSET TCHX,TCHY
VSYNC 1
GOTO @LOOP

Also, what else would you like to know? You said more, not just drawing.

I actually meant GRPED. Like how do you use it and put it in your program?

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. Wait was that just a joke?

Nintendo Network ID: GreatGamer123

Discostew

randomous wrote:

@Discostew Of course, the voice of reason lol. Thank you, I'll try it. Oh, but if it's a line that's angled, I'd need to set the collision box to the right place on one of the edges, wouldn't I?

I was thinking, if you use SPHOME to put one end of the line on where the "origin" of the sprite is, you won't have to change SPCOL everytime for different angles. It's always be on one end, and you can use SPCOLVEC to extend from that box. Using SPHOME like this would also allow you to rotate the line too in the direction you want it to be, with the back-end on the sprite origin.

As a dev of blargSNES, just stop with the claims that o3DS can emulate SNES games accurately @ 60fps. It cannot.

Nintendo Network ID: Discostew

GraphicGenius

I can do anything for anyone! Except for now. The Million Second Quiz is coming on.

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. Wait was that just a joke?

Nintendo Network ID: GreatGamer123

ramstrong

Discostew wrote:

randomous wrote:

Hey, what happens to SPHITNO when the our sprite hits multiple sprites? Is there a way to get each sprite that our sprite is colliding with?

Someone had asked about sprite collision some pages back, and I explained it, including code for handling collision of multiple sprites with one.

http://www.nintendolife.com/forums/dsiware/petit_computer?sta...

That post not in Tutorial thread, no way people are going to find it. How about reposting it to Tutorial thread?

@bluerobin2
Thanks for the endorsement. The link in my signature is specific to Petit Computer Tutorial, so you don't have to deal with Raspberry Pi or cooking posts. I still need to update the QR codes, though. They're on the old blogspot site at ramstrong, if you're looking for them.

@programmerpro
I did a Paint program blogpost when I was learning graphics. I suggest you check it out! It's the paint program I used to draw the Goldfish for Coral Maze, FYI.

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

Let's just call a spade, a spade.

607jf

Sorry if i havent seem to have been on much, IRL crap has invaded my time, im still following though.

Chao!, Nintendo, Need For Speed, Minecraft And More! 3Ds FC-4742-5514-6521.

Slayer

607jf wrote:

Sorry if i havent seem to have been on much, IRL crap has invaded my time, im still following though.

Heh. I have nothing else to do than browse WiiWare. No eShop for me...
I am hunting down tutorials on this programming language... I wish I had more knowledge of this like most people here...

I have nothing really to say about myself.

GraphicGenius

I found out how to do graphics, but I still don't know what to do @Pootrick2!
What should I do to help on the game?

Edited on by GraphicGenius

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. Wait was that just a joke?

Nintendo Network ID: GreatGamer123

randomous

@Discostew That's true, I'll try that. Changing SPHOME may meddle with some things, but all in all, it should be fine... hopefully lol.

randomous

TAINT_Zzyex

damolii wrote:

TAINT_Zzyex wrote:

http://petitcomputer.wikia.com/wiki/RPG_Sprites FINAL edition of my rpg sprites. more will come i guess. these are all that i will have in my first game. (ize got movement in) when i have a battle system i will post

You could just try and use mine.......

i have 4 people per party so yours wouldnt work well... also i have the game on the wiki the movment stopped working so i posted it for help. just search trpg

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

Twitter:

GraphicGenius

The forums have been really slow today. And I still don't know what to do @Pootrick2! I really need to know because I just read everything in the manual and now I know a lot. And if there's anybody new to Petit Computer I will give as many tutorials as wanted!

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. Wait was that just a joke?

Nintendo Network ID: GreatGamer123

InsertPi

Good news! I have render distance working! It loads all blocks until 16 blocks in front of you (in all directions). I'm gonna make it to where each time you press the Y button, it will toggle 8 block render, 16 block render, render distance off. What the Y button does currently will be put in the touch GUI. Beta 1.5.5 is almost here!

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

Nintendo Network ID: IAmAPerson620 | Twitter:

randomous

@Discostew Well, that did the trick... I think. I've only tried stationary targets so far (I haven't programmed enemy movement yet), but it seems to work well. Thank you very much! I actually just let the system decide the SPCOLVEC by using SPOFS (according to the manual, SPCOLVEC is automatically set based on previous position mixed with interpolation time).

randomous

mystman12

I found a great way to load background tiles into my game, and tomorrow I'll try to fix up movement. Then I'll release some new QR codes, in case any of you are interested.

I like makin' games!
Future Pinball games!
Petit Computer games!!
and SmileBASIC games!
Waiting for Kirby Air Ride 2. One day, it will come. One day...

Nintendo Network ID: mystman12 | Twitter:

BonChoi

WHO SUMMONED ME?!?!
LOL j/k I haven't been on because of school and I have nothing to be on about :/
Just so ya know I'm not dead

Programmer for Minecraft DS!

Press B!

InsertPi

More improvements to the render distance, bug fixes, and LOL @0Games!

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.

Nintendo Network ID: IAmAPerson620 | Twitter:

InsertPi

Sorry for double post, but how do you draw in different shades of a colour? Like light red, red, and dark red without having to use different colour IDs. Something like 3A, 3B, and 3C?

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.

Nintendo Network ID: IAmAPerson620 | Twitter:

ShadowGame

Hello,
i would ask somethings about Petit Computer.
I would make a shot if you press the touchscreen, but it doesnt work. Here the code:
My code set the variable "move" to R,L,U and D and if the touchscreen is pressed, then it
goes to @TCH

Here is the rest of the code for this:

IF MOVE==L THE GOSUB @L ELSE THEN
IF MOVE==R THEN GOSUB @R ELSE THEN
IF MOVE==U THEN GOSUB @U ELSE THEN
IF MOVE==D THEN GOSUB @D ELSE THEN GOSUB @LOOP RETURN
@R
Then comes SPSET, SPOFS And after this how it must move
(the right shot must move to the right and so on)

The problem: It always go to @L. When i write IF MOVE==R in the first line on then it goes
to @R. Why it always uses the first one?

Question 2:
How can i make that sprites are on the touchscreen? I know how to make with backgrounds but not with sprites.

Question 3:
How can i load own sprites? I know: LOAD "SPU0:FILENAME" but that only loads the sprite... How can i blit it on the screen

Please help me. The first question is the importantst for me.

Edited on by ShadowGame

ShadowGame

Top

Please login or sign up to reply to this topic