Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lesson Seven: Using Flags. What Are Flags? Flags are Variables or Switches Used to Help With Logic Control of your character. Normally, Flags are used.

Similar presentations


Presentation on theme: "Lesson Seven: Using Flags. What Are Flags? Flags are Variables or Switches Used to Help With Logic Control of your character. Normally, Flags are used."— Presentation transcript:

1 Lesson Seven: Using Flags

2 What Are Flags? Flags are Variables or Switches Used to Help With Logic Control of your character. Normally, Flags are used inside a level/frame, to denote a yes or no situation (Boolean – True of False). Flags are used in various ways, such as: – Picking up Objects – Dropping Objects – Activating Switches – Activating Cut Scenes

3 Use Flags Go To Event Editor. To Pick Up An Object: – Create a Collision Event with your character and the object you want to pick up. – Right Click Under Your Character (or item) and go to Flags. – Click on “Turn Flag On”. – A new pop-up will appear showing a calculator. Enter a Number to denote the flag. Hit OK. – Create a New Event with the object that you have the flag on. Right Click on the Object  Go To Alternating Values  Flags  Is Flag On? Another Number Box Pops Up. Enter the same number you did before. Hit OK. Right Click Under the Object that You Want to Pick Up. Go To Position  Select Position  Click on the Character, then move the checker box to a location on the character you want the object to appear.

4 Picking up and dropping an object First click on new condition. Right click on the item you want to pick up. Go down to Alternating Value  Flags  Is Flag On? – A Pop up box will appear. Type in the Number Flag you Want (Recommend 0). Right Click under the item and go to Position  Select Position – A New window will pop up. Click on your Character and Move the checker box to your character’s hand. Create a New Condition. Right click on the keyboard icon. – Go to Keyboard  Upon Pressing a Key – Press the Designated Key. Right click under the item you want to pick up. – Choose Flags  Toggle – A Pop Up Box will appear. Choose the same number you put in before. Hit OK.

5 Exercise Open Your Application. Select Your Frame. Go Into Event Editor and Create a flag event that lets your character pick something up. Save Your Game.


Download ppt "Lesson Seven: Using Flags. What Are Flags? Flags are Variables or Switches Used to Help With Logic Control of your character. Normally, Flags are used."

Similar presentations


Ads by Google