They should move every "0.6" Second fist and after a short time they will begin to move faster.
If there were problems, then because of the different computer speeds maybe. I realized the movement with timer, so maybe thats the problem?
Thanks for your corrections! There are some unused things because I tested many ways out before I got this on
and I didn't cleaned it all up sometimes
Atm, I'm very unfamiliar with OOP. There I have to read some articles and tutorials I think
AlienInvaders - my first game
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: AlienInvaders - my first game
Look into how to use dt, it will help you get around different framerates. By using dt in love.update, you can make your game logic consistent regardless of computer speed.Larsii30 wrote:They should move every "0.6" Second fist and after a short time they will begin to move faster.
If there were problems, then because of the different computer speeds maybe. I realized the movement with timer, so maybe thats the problem?
Thanks for your corrections! There are some unused things because I tested many ways out before I got this on
and I didn't cleaned it all up sometimes
Atm, I'm very unfamiliar with OOP. There I have to read some articles and tutorials I think
Edit: the examples in the wiki for love.update were lacking (by which I mean nonexistent). I added a couple, hopefully they will clear things up for you and other Lovers.
Kurosuke needs beta testers
Re: AlienInvaders - my first game
awesome.tentus wrote: Look into how to use dt, it will help you get around different framerates. By using dt in love.update, you can make your game logic consistent regardless of computer speed.
Edit: the examples in the wiki for love.update were lacking (by which I mean nonexistent). I added a couple, hopefully they will clear things up for you and other Lovers.
Edit: I tested it with dt and now the aliens move constant. Thank you
Who is online
Users browsing this forum: No registered users and 2 guests