Need help with triggering cutscenes

K

Karmen Freeman

Guest
I'm making an RPG and am confused.
I want to make a cutscene that will be triggered once the player object moves to a certain coordinate in the room (just a simple cutscene with some dialogue you can click through). All of the timeline and step events seem to be based on time and not once a certain action is done.

Is there a way to use the tools in Game Maker: Studio to make such a thing occur? I apologize if my question doesn't make sense or if the solution is painfully obvious.
 
K

Kululu17

Guest
Yup!
First define a cutscene variable like:

Cutscene = 1;

Then I like to use one of the view commands, like:

if view xview = 500 (put in the x or y coordinates you are looking for) && Cutscene == 1 { Cutscene = 2}//keeps it activating only once

Then within the code:

if Cutscene == 2 {
Cutscene = 3;//keeps it activating only once
// now do the stuff you actually want to do

// end stuff
}

Forgive any vagueness in the code, as I have just been to a really nifty biergarten :)
 
Top