How do I revert animation by one frame

Get help using Construct 2

Post » Fri Jun 20, 2014 9:18 am

Having created a simple lifebar (three red balls each displaying one life), I wonder if there is a way to efficiently display the loss of a life.
On the loss of a life, I want to reset the layout, substract a life from the global variable "Lives" and set the lifebar frame to one frame before (the way the lifebar animation is set up, the first frame displays zero red balls, the second one displays one, the third one displays two and the fourth one displays three) .

Is this somehow possible or will I have to base this on multiple conditional branches (i. e. "if variable 'Lives' = 1, set frame to 0", etc)?
B
6
S
2
Posts: 206
Reputation: 1,685

Post » Fri Jun 20, 2014 9:25 am

you can use global variables in expressions

you could just do

LifeBar set animation frame to Lives
B
6
S
2
Posts: 79
Reputation: 608


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests