Forums

Topic: Petit Computer

Posts 5,441 to 5,460 of 9,618

607jf

@IAmAPerson You ganna wait till you can fix the render distance? or just release it after the block id update?

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

InsertPi

607jf wrote:

@IAmAPerson You ganna wait till you can fix the render distance? or just release it after the block id update?

It?

@Everyone anything I can improve on in MCDS? I mean improvements not additions. I will remind you that BETA 1.1 will include block IDs, touch GUI, possibly render distance, and performance improvements. (Reducing lag.)

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:

ramstrong

Miblon wrote:

New member of NL here.
1. Is a Cave Story port or similar game possible?
2. When I try to download a Qr code, the camera to do so is all pink.
3. This isn't a question, but Randomous, Ramstrong, Morphtorok are all awesome.

Welcome to the forum! I'm always happy to see new members. Of course, if we have too many, it'll be 10 new pages per day.
1. Yes
2. I've never seen that before, so I don't know.
3. You forget Discostew. He's way above my level (even though I ribbed him in my last post. )

On another note, I'm about to start outlining Petit Computer Programming Course for complete beginners. Any requests? Besides the issues I've noted in my journal, that is.

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

Let's just call a spade, a spade.

607jf

@IAmPerson i ment where you ganna release It with New Block ids&Render distance? or release New Block ids then a seprate one for Render distance? (But nvm since you already said it.)

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

InsertPi

Miblon wrote:

New member of NL here. I've been secretly stalking this thread as a guest since I got PTC and I finally got the courage to make a account. I have some questions though.

1. Is a Cave Story port or similar game possible? Platformers and RPGs are popular genres on Petit Computer, and if you mix them together you get the genre of Cave Story. Sure, it's going to be difficult to program, but I just want to know if it's possible.

2. My QR reader is bugged. When I try to download a Qr code, the camera to do so is all pink. My 3DS camera application works fine though. Is there a solution to fix this?

3. This isn't a question, but Randomous, Ramstrong, Morphtorok are all awesome.

P.S. I typed this with my Wii U GamePad.

Everyone on here is awesome! (Except @Discostew cause he's better than us. Lol jk)

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:

Miblon

Thank you all for welcoming me.

@ramstrong Woops, forgot him. He's awesome! Oh, I also forgot IAmAPerson. You know what? You are all awesome! c:

Anyways, I'm trying to make a game called 'Sword Pong'. It's like Pong but with swords. But before I work on it, I want to get my barrings with some commands. I'm trying to learn how to use GOSUB and RETURN, as they are useful commands. Though I do have a question about GOSUB; how is it different than GOTO? I know GOSUB has something to do with strings (which I am also trying to learn about). Can anyone elaborate?

Also, on the topic of Cave Story, I made a font alike the font the original CS on the PC. It looks really pretty, and I can give QR codes for anyone who wants it. But first I have to learn how to make them first!

This isn't a interesting signature. Go look at someone elses.
Friend Code: 5370-0889-8930

swordx

Miblon wrote:

Thank you all for welcoming me.

@ramstrong Woops, forgot him. He's awesome! Oh, I also forgot IAmAPerson. You know what? You are all awesome! c:

Anyways, I'm trying to make a game called 'Sword Pong'. It's like Pong but with swords. But before I work on it, I want to get my barrings with some commands. I'm trying to learn how to use GOSUB and RETURN, as they are useful commands. Though I do have a question about GOSUB; how is it different than GOTO? I know GOSUB has something to do with strings (which I am also trying to learn about). Can anyone elaborate?

Also, on the topic of Cave Story, I made a font alike the font the original CS on the PC. It looks really pretty, and I can give QR codes for anyone who wants it. But first I have to learn how to make them first!

You forgot someone else, too... hint hint...HINT HINT!

What does everyone think of Dungeon Advnture version 1.1? Is the game any better with saves?

swordx

InsertPi

Miblon wrote:

Thank you all for welcoming me.

@ramstrong Woops, forgot him. He's awesome! Oh, I also forgot IAmAPerson. You know what? You are all awesome! c:

Anyways, I'm trying to make a game called 'Sword Pong'. It's like Pong but with swords. But before I work on it, I want to get my barrings with some commands. I'm trying to learn how to use GOSUB and RETURN, as they are useful commands. Though I do have a question about GOSUB; how is it different than GOTO? I know GOSUB has something to do with strings (which I am also trying to learn about). Can anyone elaborate?

Also, on the topic of Cave Story, I made a font alike the font the original CS on the PC. It looks really pretty, and I can give QR codes for anyone who wants it. But first I have to learn how to make them first!

GOTO goes to a part of the code. GOSUB is similar, but the RETURN command is used with it to go back. Here's an example:

PRINT "Hi!"
GOSUB @EXAMPLE
PRINT "How are you?"
GOSUB @EXAMPLE
END
@EXAMPLE
WAIT 180 '3 seconds
CLS
RETURN

A gosub (aka a subroutine) has nothing more to do with strings than a GOTO. GOTOs will go to a part of the code, but it cannot go back unless you have a GOTO after that, which in that case, can only be used once in the code. GOTOs are better for going to a part of the code and staying there. GOSUBs can be used in multiple parts of the code with no problems (like above). If you have any questions, or something I made is unclear, just ask for me (or anyone else) to clarify.

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:

swordx

Errrr ma gerdddd. My saving IS NOT WORKING! WTF!!!

swordx

Eel

Thanks @ the person who said I was awesome, welcome to the -herd- group!

By the way, I was fooling around with gcopy yesterday (made a little app that puts a 32*32 drawing where you touch with the stylus) and it reacted in a weird manner when I got too close to the top & left borders of the screen. Why is that?

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

ramstrong

@Miblon
I suggest that you go through the Tutorial thread, if you haven't done so. GOTO and GOSUB has to do with label, not string. Although you can specify the label as string, that's not the idea. The idea is to jump to some labelled parts of the program.

You know how programs execute one after another, right? GOTO is used to branch/jumps to another part of code. Used by itself, it's rather limited. Good for Infinite Loops. Usually, GOTO is useful in the form of IF-GOTO. In English, IF such-and-such THEN do-this .

GOSUB is just like GOTO, except there's a qualifier.
IF such-and-such THEN do-this (and come back here when you're done!)

So in terms of RPG, GOSUB is a side quest, you'll come back from. GOTO is another land, you'll never come back.

GOSUB is a paired command. Just like FOR-NEXT, IF-THEN-ELSE, GOSUB-RETURN. Think of GOSUB-RETURN as a big block of code. Although you can nest GOSUB, each must be paired just like FOR-NEXT.

HTH.

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

Let's just call a spade, a spade.

swordx

Erggg ummm can someone help me with my save system in Dungeon Adventure? If you need to see the code, the @labels are @LOADGAME and @SAVEGAME. I really need help.

swordx

ramstrong

Morphtorok wrote:

Thanks @ the person who said I was awesome, welcome to the -herd- group!

By the way, I was fooling around with gcopy yesterday (made a little app that puts a 32*32 drawing where you touch with the stylus) and it reacted in a weird manner when I got too close to the top & left borders of the screen. Why is that?

Can't help you without the code, but if the behavior does fit the technical term "weird manner", then I suspect hardware error. Loose screen protector, maybe? Try recalibrating your stylus.

swordx wrote:

Erggg ummm can someone help me with my save system in Dungeon Adventure? If you need to see the code, the @labels are @LOADGAME and @SAVEGAME. I really need help.

Did you copy the routines from my flipbook program? It's on Petit Computer Journal #15. If not, why not? Should've done that!

[Edited by ramstrong]

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

Let's just call a spade, a spade.

twinArmageddons

ramstrong wrote:

So in terms of RPG, GOSUB is a side quest, you'll come back from. GOTO is another land, you'll never come back.

nice example

get in loser we're going titan hunting

swordx

@Ramstrong

I followed these instrunctions:

randomous wrote:

@IAmAPerson620 Yes, there's an item called the "House Mover" which teleports your house to the spot you're facing when you use it. It's expensive though... I might think about lowering the price. Hey, have you ever looked at the GRP save file? It looks pretty cool.

Also, working with GRPs isn't that hard! You use each pixel on the GRP as a spot to store a number. The number can only range from 0-255, so that could be the hard part (if you trying to store larger numbers). Then you just have to keep track of where you want to save stuff, and write a pixel (GPSET X,Y,COLOR) of a certain color at the spot you chose. Later, you can come back to the GRP and use GSPOIT(X,Y) to read the color you stuck there. It's just a number, so you can use it directly. Here's an example:

I want to save an item in your bag. Each item's value can only range from 0-255, so that's easy. Let's say I start the bag right at the top left, which is 0,0. If I wanted to save the first item in the bag, I'd just do
GPSET 0,0,ITEMID
Where ITEMID is just the value that represents the item. Later, I might want to load your bag from the save file. I'd just do:
THEITEM=GSPOIT(0,0)
And now I got the value I stored in the GRP. If you just keep track of where you store stuff, you're golden! Oh, and if you don't want the save file to show up while you're loading/saving, you can draw it on one of the "back screens" like this:

GPAGE 1,3,1
LOAD "GRP:WHATEVER"
'<Read the data>
GPAGE 1,1,1

The first GPAGE command says that we're going to use the bottom screen (1), we're going to draw on screen 3 (hidden), and we're going to look at screen 1 (the bottom screen). Then when we load and read, we're using the hidden screen 3 while showing the user the regular lower screen. Finally, we put everything back to normal with GPAGE 1,1,1. This says "use the bottom screen, draw on the bottom screen, and show the bottom screen", which is the same as you're always used to.

swordx

Eel

ramstrong wrote:

Morphtorok wrote:

Thanks @ the person who said I was awesome, welcome to the -herd- group!

By the way, I was fooling around with gcopy yesterday (made a little app that puts a 32*32 drawing where you touch with the stylus) and it reacted in a weird manner when I got too close to the top & left borders of the screen. Why is that?

Can't help you without the code, but if the behavior does fit the technical term "weird manner", then I suspect hardware error. Loose screen protector, maybe? Try recalibrating your stylus.

The code is simply:
Gcopy 3,64,0,95,31,tchx-16,tchy-16,0

I have several isometric 32*32 cubes on the 3rd page out of view, this is supposed to draw the third cube on on the first row.

It works well... Until I get to these sides of the screen. The copied cube starts to glitch.

Bloop.

<My slightly less dead youtube channel>

SMM2 Maker ID: 69R-F81-NLG

My Nintendo: Abgarok

randomous

@Morphtorok Is it the same sort of weirdness that happens when you hold "R" on Village's credits to speed it up? Or is it actually incorrect results?

randomous

Miblon

@IAmAPerson @Ramstrong
Thanks for the help!
That example was a really great representation!

On the topic of Sword Pong, does anyone know some good AI to use? I know some basic sprite stuff, so all I need to know is AI really.

P.S. How does one make QR codes?

This isn't a interesting signature. Go look at someone elses.
Friend Code: 5370-0889-8930

ramstrong

swordx wrote:

@Ramstrong

I followed these instrunctions:

randomous wrote:

(snip)

Yes, that works. Unless you're specific about the error, I can't help you, but there's nothing wrong with the instruction. Are you having trouble with the loading or the saving? I suspect that you save/load the wrong graphic screen/file.

@Morphtorok
You said top-left? Does that mean 16x16 top left? And maybe 16 top pixels, and 16 left pixels?

[Edited by ramstrong]

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

Let's just call a spade, a spade.

swordx

[quote=swordx]

ramstrong wrote:

@Ramstrong

I followed these instrunctions:

randomous wrote:

(snip)

Yes, that works. Unless you're specific about the error, I can't help you, but there's nothing wrong with the instruction. Are you having trouble with the loading or the saving? I suspect that you save/load the wrong graphic screen/file.

I save the file as "GRP:DA1SAVE" after doing the GPSET and looking at my newly-made dots. I load the file as "GRP:DA1SAVE". I don't see any dots, and after doing the VARIABLE=GSPOIT(X,Y), the variables all equal 0...

swordx

Sorry, this topic has been locked.