enable/disable or add/remove behaviors in events?

Get help using Construct 2

Post » Sun Jul 07, 2013 2:01 pm

Hi.Im new to Construct 2 and I need some help with the behaviors.

I would like to add/remove or disable/enable behaviors on the fly but I don't know if it even possible.

For example I would like to make a GTA style game.
If the player object collided with the car object,then destroy player object and add or enable car behavior and Scroll to behavior on collided car object.

I founf car enable car disable events but thay don't work as I would expect and no similar event for scroll to or any other behaviors.
Anybody could help me please?
Can I add/remove or enalbe/disable behaviors in events?If yes,how?

Thanks
B
4
S
1
Posts: 28
Reputation: 406

Post » Sun Jul 07, 2013 2:25 pm

Instead of using the scrollto behaviour use the system action scrollto.

Simple example:
System: every tick /walking = true -> system: scrollto player.x,player.y
System: every tick /driving = true -> system: scrollto car.x,car.y


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 Jul 07, 2013 2:56 pm

Thanks.It helped on my scroll to issue but is there any similar cool way to enable,disable behaviors on objects?

For example
Car:on created/car behaviour = disable
Car:on collision with player/car behaviour = enable

I'm looking for a similar way to do it for all behaviors in general.
But not possible this way.
Any solution?

Thanks.
B
4
S
1
Posts: 28
Reputation: 406

Post » Sun Jul 07, 2013 3:04 pm

The latest beta adds this: r137
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Sun Jul 07, 2013 3:30 pm

Thanks the Steam version just updated
B
4
S
1
Posts: 28
Reputation: 406


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests