|
Post by sp3fnw on Aug 7, 2020 5:49:08 GMT
hello have a question how to kill a sprite that falls from a height?
|
|
|
Post by Packobilly on Aug 7, 2020 6:24:30 GMT
Hi! You should give more information on the matter. I do not know if you mean an enemy that falls or the player when he falls from high ... anyway, if it is the enemy, basically...
IF CANDWN FALL ELSE RMV ENDIF
...and for the player you can configure it from the jump option, as long as you specify in the fell too far event to let him die when falls. By the way, I am using AGDx. Cheers!!
|
|
|
Post by sp3fnw on Aug 9, 2020 6:40:48 GMT
I mean a player who falls from a height of e.g. 48 pixels and dies, I use MPAGD
|
|
|
Post by Packobilly on Aug 9, 2020 8:15:41 GMT
Ah, ok.
From my unfamiliarity with MPAGD, I think you could increment a variable each time it falls. That way, when it stops falling, you check if it is higher than the height you want and thus kill the player or not. 🤷🏻♂️
I am sorry, sp3fnw, but I have not used MPAGD yet.
Cheers!
|
|
|
Post by Jonathan Cauldwell on Aug 9, 2020 12:00:00 GMT
Have you tried putting a KILL instruction in the FellTooFar event? If you're using JUMP instead of TABLEJUMP you can also check the sprite's JUMPSPEED variable and kill the player if he hits the floor above a chosen speed
|
|
|
Post by sp3fnw on Aug 9, 2020 20:27:50 GMT
ok, thank you gentlemen, I will have some time, I will check it in case of any problems sorry for my english i am from polish
|
|
|
Post by sp3fnw on Aug 12, 2020 21:12:30 GMT
FELLTOOFAR
if type = 0 kill endif
solved the problem
|
|
|
Post by pachic on Jul 21, 2021 0:19:00 GMT
Have you tried putting a KILL instruction in the FellTooFar event? If you're using JUMP instead of TABLEJUMP you can also check the sprite's JUMPSPEED variable and kill the player if he hits the floor above a chosen speed JOnathan, I never used AGD, how can handle jump with your MPAGD?
|
|
|
Post by Jonathan Cauldwell on Jul 21, 2021 13:16:29 GMT
Have you tried putting a KILL instruction in the FellTooFar event? If you're using JUMP instead of TABLEJUMP you can also check the sprite's JUMPSPEED variable and kill the player if he hits the floor above a chosen speed JOnathan, I never used AGD, how can handle jump with your MPAGD? My quote above relates to MPAGD. You have a choice, you can use TABLEJUMP on its own, or JUMP n where n is the initial speed. The manual should explain a little more with examples
|
|
|
Post by pachic on Jul 21, 2021 20:58:45 GMT
Thanks Jonathan, MPAGD is great tool , Idont have a lot of time and I think It´s will be my hobby
|
|
|
Post by pachic on Jul 22, 2021 1:25:17 GMT
Now my proble is fall faster, the command dont work I see 2 moments When I fall becuse dont have floor or when Jump I wrote that in the player event
IF KEY FIRE JUMP 7 FALL FASTER ENDIF FALL FASTER
|
|
|
Post by pachic on Jul 23, 2021 19:05:31 GMT
Have you tried putting a KILL instruction in the FellTooFar event? If you're using JUMP instead of TABLEJUMP you can also check the sprite's JUMPSPEED variable and kill the player if he hits the floor above a chosen speed JOnathan, I never used AGD, how can handle jump with your MPAGD? I know Jumpspped can help, but how Can I use it?
|
|