Pixel Collision - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Questions (https://www.naalaa.com/forum/forum-3.html) +--- Thread: Pixel Collision (/thread-113.html) Pages:
1
2
|
RE: Pixel Collision - kevin - 04-11-2024 (04-11-2024, 01:19 AM)johnno56 Wrote: 1. Controlling the ship is not as "smooth" as I would normally like Very nice Johnno, and very challenging (for me anyway). My personal preference for controlling the ship would be to smooth out the movement, so there are less times when the vertical movement is at zero: Code: if lander.onPad = false lander.vSpeed = max(lander.vSpeed + 0.01,1) Code: if keydown(KEY_UP) and lander.onPad = false However, this does make the challenge quite a bit easier. You may find better results by experimenting with the minimum and maximum values in the code above. This may be just my personal preference, so feel free to ignore All the best - Kevin. RE: Pixel Collision - johnno56 - 04-11-2024 Cool... A change is as good as a holiday! |