Collide + Screen shake
honeymimi56
Member, PRO Posts: 24
Hello,
I'm creating a platform jumping game. I'd like to make an effect that when the player hits an enemy, both of them freeze, at the same time screen shakes. after that, it changes to the game over scene.
at the moment, it goes to the game over scene directly after the player collides with an enemy.
Can anyone help with it?
Thanks!
Comments
Hi @honeymimi56,
Firstly I would make a global boolean attribute (e.g. 'game_over')
Now, set a rule in the player:
Then, in each actor you want to freeze, include the rule:
To make the screen shake, I would create an new actor (e.g. 'Screen_Shaker', with visibility set to false) and place it in the Scene.
Now, double click on the 'Screen_Shaker' actor in the scene window and click the lock to enable editing of scene behaviours.
Create a rule in this unlocked 'Screen_Shaker' actor:
I hope that helps!
Hi Awesome_well, thank you so much! It's really helpful