![]() |
||||||||||||||
|
||||||||||||||
blade2k
» articles & tutorialsAirship Tutorial
How to board your ship while driving like in FF7! This is a tutorial on boarding your ship while steering by pressing the menu button (doesn't interfere with the main menu!) What you need: 1 Common event 1 Any old map 1 New map for the ship 4 Variables (THAT'S IT) Name the variables: keycode shipidX shipidY shipidmap Okay, first of all, go into your Common Events tab in the Database. Make a new event, name it "Airship" or something more exciting. Make the trigger a parallel process. <>Key Input Proc: [XXXX:keycode] **check only the "Cancel Key (6)" and nothing else. <>Branch: Var [XXXX:keycode] is 6 **signals when player hits the Cancel Key __<>Branch: Airship Vehicle **checks if the player is in the vehicle __<>Main Menu Access: Forbid **makes it so the main menu doesn't pop up while you're driving, but does this instead __<>Tint Screen: (R000, G000, B000, S000), 1.0 Sec (Wait) **hides what we're about to do next. __<>Memorize Location: [XXXX], [XXXX], [XXXX] **have the X ID saved on the shipidX variable, Y ID on the shipidY variable, Map ID on the shipidmap. __<>Teleport: XXXX:Random (000,000), Retain Facing **Make this a place where the airship can land. Any place is good; we won't be seeing it. __<>Exit/Enter Vehicle **this is actually exiting the vehicle, but the system says it's entering. __<>Wait: 2.0 Sec **This is about how long it takes for the ship to fully land and the sprite to appear __<>Teleport: XXXX:ship (enter coordinates here) **places the character (hero) on the ship __<>Tint Screen: (R100,G100,B100,S100), 1.0 Sec (wait) **uncovers the final result... <>Else Handler **what happens when the Cancel Key does when not driving __<>Main Menu Access: Allow **allows access to the Main Menu <>End Have an event on the ship, like a character or something, that when you talk to it, says: <>Message: Do you want to steer? <>Show Choices: Yes/No **say yes to drive [Yes] Handler __<>Tint Screen: (R000,G000,B000,S000), 1.0 Sec (Wait) **hides what we're about to do... __<>Recall to Location: **insert shipidX for the X coordinates, shipidY for the Y coordinates, shipidmap for the Map ID __<>Set Vehicle Origin: **insert shipidX for the X coordinates, shipidY for the Y coordinates, shipidmap for the Map ID __<>Enter Vehicle **enables drive __<>Tint Screen: (R100,G100,B100,S100), 1.0 Sec (Wait) **uncovers what we've done [No] Handler <>End And that's it. What have we done? We've made an event where, if you want to, you can enter the vehicle while driving by pressing the menu key like in FF7! Amazing, right? |
|
|||||||||||||
|
©2002-2008 blade2k.net - parsed in 0.002 seconds - view active users
[15982 members][newest member: MiyakoArima]
Active Users (0)
|
||||||||||||||