Search found 3 matches
- Sat May 18, 2013 7:37 am
- Forum: Support and Development
- Topic: How to "jump" after few Quad of stripe
- Replies: 5
- Views: 2733
Re: How to "jump" after few Quad of stripe
I have little experience with animations, But if there's a way to detect which frame of the animation is currently being drawn you could start the animation when the jump key is pressed, then wait until the 5th frame is being drawn and then jump. This would pretty much be a simple if statement. If ...
- Fri May 17, 2013 1:28 am
- Forum: Support and Development
- Topic: How to "jump" after few Quad of stripe
- Replies: 5
- Views: 2733
Re: How to "jump" after few Quad of stripe
What do you mean by stripes? To set a time delay you can do something like this in love.update t = t + dt if t > delay then --Do things end t being a variable for the current time and delay for the amount of time to wait. Thanks for the reply. By "stripes" I meant quads of the image file ...
- Thu May 16, 2013 9:57 pm
- Forum: Support and Development
- Topic: How to "jump" after few Quad of stripe
- Replies: 5
- Views: 2733
How to "jump" after few Quad of stripe
Hello everyone I would like to share my problem about the platformer that I have been creating (is this the word to use?). So, here is: When pressed the "up" key the "player" should jump, which there is not any problem with that. But what I want to do is to set a time delay that ...