How would I create fall damage in construct using the platform mechanic? Thanks!
Develop games in your browser. Powerful, performant & highly capable.
Set a instance variable on your player.
On fall: Every 2 seconds, set this instance variable to self+1.
On landing: if variable not equal to 0, set player.life = player.life-variable
Thank you!
Sprite instance variables (number):
FallingHeight
#1
Platform is falling... Set FallingHeight to Self.Platform.VectorY / 1000
#2
Platform On Landed... FallingHeight < 0.6 Else FallingHeight >= 0.6 FallingHeight < 0.8 Else FallingHeight >= 0.8 FallingHeight < 1.2 Else FallingHeight >= 1.2