DSiWare Forum

Topic: Petit Computer

Showing 6,661 to 6,680 of 9,492

AuthorMessage
Avatar

Slayer

6,661. Posted:

RudyDog wrote:

I was wanting this game, then I saw some of the posts... Dafuq is this and how do you use it?

Nintendo Life- viewer's discretion advised.
And by the way, does anyone want me to speed up Apocalypse Rising and Ghost Scrolls after that, and make Gladiators later? My code is messed up in the current file I have on it, and it's holding back a lot of the projects I am going to make.
@mystman12 the closest thing I thought of from your question is the variable to tell the time. I have a clock program that I made in my digital copy of PTC, and it's actually pretty simple to make. The variable for time is actually a system variable, and it's TIME$. Here's how I made my program-
@START
@CLOCK
CLS
LOCATE 12,12
PRINT TIME$
GOTO @START
Very simple program.
You can see the frames flashing but I need to fix that...

Edited on by Slayer

"Hello sir, may I take your order?"
"Yes, I'll have a cheeseburger and fries..."
"I AM the cheeseburger and fries!"
Things you need to know about me:
I hate Texas.

AuthorMessage
Avatar

TAINT_Zzyex

6,662. Posted:

@ogames i suggest dropping 2 projects and working on just 1

"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

6,663. Posted:

TAINT_Zzyex wrote:

@ogames i suggest dropping 2 projects and working on just 1

I have 2 going, Gladiators and Apocalypse Rising. Gladiators I'm going to get back to- that's fine, it was pretty buggy probably. I'll get more knowledge and come back. Now I can focus on one project, and I'm not stressed completely.
Coding through the thunder storm.

Edited on by Slayer

"Hello sir, may I take your order?"
"Yes, I'll have a cheeseburger and fries..."
"I AM the cheeseburger and fries!"
Things you need to know about me:
I hate Texas.

AuthorMessage
Avatar

InsertPi

6,664. Posted:

mystman12 wrote:

I've got a few random questions. What is VSYNC for? I see it used a lot. Does the sprite control number determine the layer the sprite is on? And finally, is there a way to keep track of time without using WAIT? (And stopping everything) Would I just have to use a variable that keeps track of how many frames have past?

VSYNC is good for loops where you're drawing over and over so it doesn't flash. You'd use it like this:

@LOOP
'Draw something here
VSYNC 1
GOTO @LOOP

Sprite control number is what identifies each sprite. As it says, it is the number that you assign to each sprite that you control it using. @randomous can explain it better. I never use sprites in anything I use.

And for how long since the program has started, the system variable MAINCOUNTL keeps up with the time since a program has started. I believe it counts in frames. 60 frames is 1 second, so

SECONDSSINCESTART=MAINCOUNTL/60

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

Slayer

6,665. Posted:

Time to get to work. Thunder in the background. IRL thunder.
I'm gonna need sprites of a survivor holding the basic M1911 pistol. That will be fairly simple.
I have most of them done. After this I can implement basic moving and exploration gameplay. Then scrolling. Then zombies. Then health. Then ALPHA 1.0 people.

Edited on by Slayer

"Hello sir, may I take your order?"
"Yes, I'll have a cheeseburger and fries..."
"I AM the cheeseburger and fries!"
Things you need to know about me:
I hate Texas.

AuthorMessage
Avatar

InsertPi

6,666. Posted:

I just noticed something. At the rate I'm going, Minecraft DS will be complete in just a couple more months! After that, I'll take a (temporary?) "retirement" from Petit Computer. I'll keep up with the forums, but I won't make anything for about a month, if anything else at all. I'm moving into some more advanced languages, so know that I won't be around forever. :( When PTC 3D comes out, I might come back for a while, but a while is still not forever. Don't take this as a farewell! I still have a while before I stop making stuff. If you guys with for more updates for Minecraft DS after the official release, I might "give" the program to someone, like Notch "gave" Minecraft to Jeb, so the game can keep on improving.

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

mystman12

6,667. Posted:

@IAmAPerson Okay, thanks for helping. It doesn't sound like I need VSYNC for anything, and the MAINCOUNTL system variable might come in handy. As for sprites, basically the character you control in the game is sprite #0. I have some other sprites that are a higher number, but the character sprite appears over the ones with a higher number. I don't know if the layering has to do with the control number or the order the sprites were created or something else.

I don't believe it! I won't believe it! There isn't a pinball right here! What kind of world do we live in, where there isn't a pinball right here? Well, I'm going to do my part! I'm gonna— umm... build a pinball! - Homestar Runner (Sort of)
Future Pinball blog
Infinite Office for PTC!

3DS Friend Code: 0259-0292-5888 | Nintendo Network ID: mystman12 | Twitter: mystman12

AuthorMessage
Avatar

Lego-Meister

6,668. Posted:

@mystman12 You can change the layer of sprites when you use spset with the 6th variable. Like this.

SPSET 1,0,0,0,0,SpriteLayer0-3

Some programmers pride themselves on how many more lines of code they can write. I pride myself on how many less.

3DS Friend Code: 3652-1447-0455 | Nintendo Network ID: Legos-Meister

AuthorMessage
Avatar

ramstrong

6,669. Posted:

0Games wrote:

I'm not really sure if you can see through untrue statements or not. Everyone knows me here, I would never MEAN that.

You're expecting everybody here to read your mind? So, what you're doing here is basically just say random things and let other people sort them out? That's too close to "Kill them all, and let God sort them out." SHIVERS.

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

Let's just call a spade, a spade.

3DS Friend Code: 1091-7596-4855

AuthorMessage
Avatar

Bluerobin2

6,670. Posted:

So I won't be entering Cavalux. Its taking too long. I'll be entering a game I call "Robots Life". Its inspired by the popular online game "B-Cubed" and includes some elements inspired by Portal 2. You play as a robot, whose sole purpose is to test, test, test in the development for a better ai system for this company's line of robotics project. This robot wants to be free. to be needed. heck, he even has no name. But during the seemingly endless tests and puzzles, there is no chance of that. Or is there?

Everybody do a chirp. CHIRP.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Slayer

6,671. Posted:

ramstrong wrote:

0Games wrote:

I'm not really sure if you can see through untrue statements or not. Everyone knows me here, I would never MEAN that.

You're expecting everybody here to read your mind? So, what you're doing here is basically just say random things and let other people sort them out? That's too close to "Kill them all, and let God sort them out." SHIVERS.

I actually didn't know why I said that. Maybe it was one of those days where I went half insane of being stuck...
For this scrolling this will be pretty easy, but for health I might have a very slight chance of having to use IF THEN and ELSE topped off with a little SPHIT. Some days I really do see how this is basic...
Buttons really are annoying...
I'm trying to make it so if you are at the Apocalypse Rising main menu, if you press A at New Game, then Hairmanban19's maps would load in a new game. But of course BTRIG and BUTTON are very tedious. I used this:
IF BTRIG()==16 AND Y==1 THEN GOTO @SURVIVESP
Anything wrong?
O.O @Lego-Meister I almost thought you were @PetitProfessor's secondary account until I realized you have better grammar and spelling. You just also have the same profile picture.

Edited on by Slayer

"Hello sir, may I take your order?"
"Yes, I'll have a cheeseburger and fries..."
"I AM the cheeseburger and fries!"
Things you need to know about me:
I hate Texas.

AuthorMessage
Avatar

ShadowGame

6,672. Posted:

Iamaperson wrote something about PTC 3D. What is this? Is this a Version of Petit Computer
with that you can make 3D games?i
If yes, does it release for 3DS?

ShadowGame

AuthorMessage
Avatar

Lego-Meister

6,673. Posted:

@0Games Yeah I noticed I had the same profile picture but I thought it was some kind of glitch. Weird.

Some programmers pride themselves on how many more lines of code they can write. I pride myself on how many less.

3DS Friend Code: 3652-1447-0455 | Nintendo Network ID: Legos-Meister

AuthorMessage
Avatar

InsertPi

6,674. Posted:

ShadowGame wrote:

Iamaperson wrote something about PTC 3D. What is this? Is this a Version of Petit Computer
with that you can make 3D games?
If yes, does it release for 3DS?

It is a planned version of petit computer. It has been confirmed, but it will more than most likely not be released anytime soon. In the meantime, we can just play on and admire my majestic 3D program! 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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

ShadowGame

6,675. Posted:

Sorry, but with my Bad english i didnt understand all of your coment. Sorry.
For wich console does it will be release?
Sorry, that i didnt understand all of your coment.

ShadowGame

AuthorMessage
Avatar

Discostew

6,676. Posted:

Dang, adding the Item Weapons for MM2 is some serious business. I had to alter a good chunk of existing A.I. code for Megaman just to start implementing it. Unlike everything else, Megaman has to interact with these Item Weapons, and they affect his positioning and such. So far, I've got the first two Item Weapons working, and interaction seems fine, except if any of them are on-screen at the time Megaman transitions from one sub level to another. It screws up his positioning, even if he isn't on one. Probably won't take me long to figure out why that's happening.

But some good new (other than the fact that these are working) is that the code is designed to work with all objects that are marked as "moving sprite platforms", so in the process, this will also work with those platform rails seen in Crashman's stage and one of Dr. Wily's stages.

"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

InsertPi

6,677. Posted:

Hey guys. Sorry for double post, but I have something that not a lot of people know of, but is an easy and very helpful command. It's this:

LINPUT TEXT$

It is the same as INPUT, but it doesn't show the question mark. So where INPUT makes this:

Please enter your name
?
_

LINPUT makes this:

Please enter your name
_

It even allows you to enter commas, where INPUT would return an error. Along with INPUT, LINPUT can also do:

LINPUT "Enter your name:";NAME$

One downside. You cannot enter variables. What do you do? Turn the string into a variable!

LINPUT NUMBER$
NUMBER=VAL(NUMBER$)

Just a small but VERY helpful tip for you guys! If there is anything I missed, please tell me/us!

@ShadowGame Petit Computer 3D will come out, but not anytime soon. It will be released for the 3DS only.

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

Discostew

6,678. Posted:

Well, that was a quick fix. During transitions, Megaman's position is first set into the global entity positioning variables (used for spawning new entities), and updates his position using those. However, with the Item Weapons, if they are removed in any form outside of going off-screen, they spawn an "explosion" (like if they touch a wall). Any spawning requires the global entity positioning variables, so it set those to the position of where the explosion would be, but unfortunately, affected Megaman's position too. So, I made a variable that is toggled for when he transitions, and prevents the explosion spawning code if it is set.

Glad that's all sorted out. So, I think I can say the first two Item Weapons are fully functional. Now to work on Item Weapon 3.

As a side note, I currently have the platforming code in Megaman's A.I. set so that if the platform is moving upward with Megaman on it, and it closes up to the ceiling where Megaman would otherwise get squished, it becomes an automatic death. I believe the rail platforms operate in this way, but I never checked if the Item Weapons did this. I will have to check both cases, just in case. If it doesn't, then I'll have to shove Megaman downward, off the platform.

edit: Item 1 checked. It appears that in that case, the platform itself explodes, dropping Megaman. So I think only the platform rails would make Megaman explode in this case. Also........my platforming code messed with my ladder code, allowing Megaman to "stand" on a mid-section of a ladder.....

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

InsertPi

6,679. Posted:

@Bluerobin2 not sure if you saw, but I added ur FC a while back.

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter: @PhilLovesPi

AuthorMessage
Avatar

Discostew

6,680. Posted:

Ugh, wrong again. Even the platform rails don't make him explode. They instead throw him off to the side. Not sure why I thought they would make him explode (maybe a different Megaman game?). Anyways, I'll just have the Item Weapons explode in that case, and for platform rails, he'll just simply drop down. The way it currently throws him to the side in the actual NES game has more to do with the way Megaman moves when "inside" a wall, which you can see with speed-runs and such (like TAS videos). This game won't be an exact replica, so I can make some improvising here and there.

"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