Saturday, 26 April 2014

Scene behaviors

Okay after some researching into scene behaviors, I realized I've already got a good understanding of this. Technically I already know how to do certain scene behaviors, which include scene change and preventing an actor from going out of bounds.
These behaviors are set up like actor behaviors but must be attached to an actual scene instead of an actor.  Scene change is very easy to do and to start setting it up is by putting in a region box in your desired point like for example a door. This method is for moving an actor to a place like a door with s region box on it, which will transition to the next scene if the actor touches it.
Next go into the scene's events editor, add a new event which is in actors-enters or leave region-actor or type. After this go to the event block to choose the actor, if it will enter or exit scene and the region which must be placed in the scene prior to this. You can then choose to add a transition that can be found in the event palette menu under the scene and game flow options. Any transition will work for example try a fade out  for 0.5 secs, then choose what scene it will go to and a fade in for the same time. This is a very important step in setting up which scene you change to.
I believe this is a good example of a scene behavior and how I came across this method is from this tutorial:

 https://www.youtube.com/watch?v=aGjYpFOIxO8

This was a quick tutorial I discovered last and felt like refreshing my knowledge of it. I haven't found actual tutorial for it in the Stencyl text book but I believe adding a level timer for a scene could count as a scene behavior as with a scene scroll which will move along with the actor. This will be in later tutorials I'll be working on. As for this method of scene transition,  I plan to use for any game I make in the future.

No comments:

Post a Comment