Fabseven
Member
Hello there,
I am currently experiencing the physics system of GameMaker and i am encountering some problems.
The game is a "hero defense" , you have to shoot at waves of monsters with your heros... ok good.
I have an "explosing arrow" witch make an explosion making mobs flying if enough force.
Screen : mob moving
mob hitted by explosion arrow bombs :
sprite is spinning (great !)
after this the mob is moving like :
I tryed forcing phy_rotation to 0 when landing butttt if the landing speed is too great the mob is going trougth the ground and then "die" because going out of the screen.
So how can i manage to make the mob going back on his feets to move normaly again ?
Second question :
How can i make an ennemy fly ? Tried with phy_position_y = phy_position_yprevious but it seem to take a lot of CPU when multiples flying mob in the game ...
I am currently experiencing the physics system of GameMaker and i am encountering some problems.
The game is a "hero defense" , you have to shoot at waves of monsters with your heros... ok good.
I have an "explosing arrow" witch make an explosion making mobs flying if enough force.
Screen : mob moving
mob hitted by explosion arrow bombs :
sprite is spinning (great !)
after this the mob is moving like :
I tryed forcing phy_rotation to 0 when landing butttt if the landing speed is too great the mob is going trougth the ground and then "die" because going out of the screen.
So how can i manage to make the mob going back on his feets to move normaly again ?
Second question :
How can i make an ennemy fly ? Tried with phy_position_y = phy_position_yprevious but it seem to take a lot of CPU when multiples flying mob in the game ...