How do I make a temporary Every Tick Event?

Get help using Construct 2

Post » Sun Jun 07, 2015 9:13 am

I need RainbowBalloon to teleport to the Player every tick after I collide with Balloon, I've tried

Player -> On collision with Balloon -> Play Audio "Item"
l
l--> System -> Every Tick -> Set RainbowBalloon position to Player

but it sets position to the player once.
B
5
S
1
Posts: 73
Reputation: 521

Post » Sun Jun 07, 2015 9:18 am

For these kind of events it's easiest to work with instance variables:

give the balloon a boolean instance variable ConnectedToPlayer

-Player On collision with Balloon
> Play Audio "Item"
> Balloon set boolean variable ConnectedToPlayer to true

- Balloon is ConnectedToPlayer
> Set Balloon position to Player
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jun 07, 2015 9:31 am

LittleStain wrote:For these kind of events it's easiest to work with instance variables:

give the balloon a boolean instance variable ConnectedToPlayer

-Player On collision with Balloon
> Play Audio "Item"
> Balloon set boolean variable ConnectedToPlayer to true

- Balloon is ConnectedToPlayer
> Set Balloon position to Player


Thanks so much! :)
B
5
S
1
Posts: 73
Reputation: 521


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests