Variable toggle and bounce on collision

For questions about using Classic.

Post » Wed Dec 23, 2015 3:17 am

Message: MrSheet can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hey guys

In my game I have a boxes that should do 3 things:
- hurt the player (-1 health)
- set private variable "is_hurt" to 1 (default 0)
- bounce the player back

These are my events
Image

Because I've set up my bounce like this (events 26 & 27) the player is bounced back immediatelly when he collides with kill_box and the variable "is_hurt" is not toggled at all.
The variable toggles only when I walk into the kill_box fast or slowly two times, see below
http://webmshare.com/play/nrGnb

Is there a better way to detect collision so my variable will change value before the player is bounced back?
B
5
S
3
Posts: 7
Reputation: 833

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest