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?
Develop games in your browser. Powerful, performant & highly capable.
There are two ways to do this.
An Eventsheet covered with with Function Calls that lead to
On Function Call foo
so on and so on
The other is to use the Timeline plugin scirra.com/forum/plugin-timeline_topic46150.html
never used it myself, so I can't be of anymore help about it.
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.
I'll give these a shot. One of them should be exactly what I needed :)