Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pixel Collision
#11
(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
    lander.vSpeed = min(lander.vSpeed - 0.03,-0.2)
endif

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  Smile

All the best - Kevin.
Reply


Messages In This Thread
Pixel Collision - by johnno56 - 04-09-2024, 09:08 AM
RE: Pixel Collision - by johnno56 - 04-09-2024, 11:25 AM
RE: Pixel Collision - by 1micha.elok - 04-09-2024, 03:37 PM
RE: Pixel Collision - by johnno56 - 04-09-2024, 06:21 PM
RE: Pixel Collision - by 1micha.elok - 04-10-2024, 02:04 AM
RE: Pixel Collision - by johnno56 - 04-10-2024, 02:26 AM
RE: Pixel Collision - by 1micha.elok - 04-10-2024, 03:22 AM
RE: Pixel Collision - by kevin - 04-10-2024, 06:52 AM
RE: Pixel Collision - by 1micha.elok - 04-10-2024, 08:05 AM
RE: Pixel Collision - by johnno56 - 04-11-2024, 01:19 AM
RE: Pixel Collision - by kevin - 04-11-2024, 06:14 AM
RE: Pixel Collision - by johnno56 - 04-11-2024, 09:30 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)