Running scripted events

Get help using Construct 2

Post » Wed Feb 06, 2013 2:05 pm

Hey,

I'm looking for a way to create scripted events. So, if a player walks into a house and I want a series of events to run, like somebody walking X pixels then turning to look out a window or something.

I haven't been able to find anything about this. I imagine I'll be able to start it with a one-time use invisible sprite and check for colission. Not really sure how to do the timings though. Maybe some For loops?
B
3
Posts: 18
Reputation: 436

Post » Wed Feb 06, 2013 4:22 pm

There are two ways to do this.

An Eventsheet covered with with Function Calls that lead to
On Function Call foo
do action
wait(x)
do action
wait(x)
do action
Wait(x)

so on and so on


The other is to use the Timeline plugin http://www.scirra.com/forum/plugin-timeline_topic46150.html
never used it myself, so I can't be of anymore help about it.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Wed Feb 06, 2013 6:11 pm

Another way is to create an invisible sprite that is your area that you want to trigger the event.

For instance on the door of the building.

Then, when the Player overlaps the the sprite you would trigger the event.
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Thu Feb 07, 2013 3:53 pm

Thanks guys!

I'll give these a shot. One of them should be exactly what I needed :)
B
3
Posts: 18
Reputation: 436


Return to How do I....?

Who is online

Users browsing this forum: jobel and 21 guests