Search found 25 matches
- Tue Jun 02, 2009 6:45 am
- Forum: Support and Development
- Topic: Velocity in Y axis never gets 0
- Replies: 4
- Views: 3005
Re: Velocity in Y axis never gets 0
Ah! Thanks!
- Tue Jun 02, 2009 5:46 am
- Forum: Support and Development
- Topic: Velocity in Y axis never gets 0
- Replies: 4
- Views: 3005
Velocity in Y axis never gets 0
I'm making a platform game where I limit the jumping. I set a variable to 1 if the jumping button is pressed and then if the velocity in Y axis is 0, the variable is set to 0. The problem is that the velocity never gets exactly 0. When I draw the Y axis velocity value of the player, it shows some di...
- Sat May 30, 2009 1:00 pm
- Forum: Support and Development
- Topic: Camera moving
- Replies: 19
- Views: 13948
Re: Camera moving
Ok, so what is this code really doing? Can't figure out what the percent sign is doing. In my current code i move the camera with getCamera():setOrigin(x, y). So what is supposed to be the x that the camera is moving to?
- Sat May 30, 2009 11:33 am
- Forum: Support and Development
- Topic: Camera moving
- Replies: 19
- Views: 13948
Re: Camera moving
Well, the problem is that when the character goes to the left more than one screen and then goes back again, the camera doesn't follow. I don't know if my way of doing this screen movement is the best so I'm wondering if someone any better idea that actually works without any x and y valuses hard co...
- Sat May 30, 2009 9:24 am
- Forum: Support and Development
- Topic: Camera moving
- Replies: 19
- Views: 13948
Camera moving
Hi! I'm trying to do a platform game where the camera only should move when the character gets outside of the current screen. Then the camera should move one screen width/height in the character's moving direction. I've almost got it to work, but as you can see, it's not working exactly as I want it...
- Tue May 12, 2009 4:51 pm
- Forum: Support and Development
- Topic: Generating playable objects
- Replies: 12
- Views: 4360
Re: Generating playable objects
I have tried to put the "oldplayers" and shapes in tables. But i really can't figure out how to get them drawn..
- Mon May 11, 2009 5:54 am
- Forum: Support and Development
- Topic: Gravity problems
- Replies: 8
- Views: 4367
Re: Gravity problems
Oh, sorry. Forgot to change it..
- Sun May 10, 2009 6:16 pm
- Forum: Support and Development
- Topic: Generating playable objects
- Replies: 12
- Views: 4360
Re: Generating playable objects
That's exactly what I meant! But how do I get the old objects to still have an image?
- Sun May 10, 2009 5:59 pm
- Forum: Support and Development
- Topic: Generating playable objects
- Replies: 12
- Views: 4360
Re: Generating playable objects
Ok, i attached the code.
- Sun May 10, 2009 5:42 pm
- Forum: Support and Development
- Topic: Generating playable objects
- Replies: 12
- Views: 4360
Re: Generating playable objects
The question is how I can make new objects by pressing a button. I'm pretty new to this.