I Wanna Be The Forums!

Please login or register.

Login with username, password and session length
Advanced search  

News:

Gaiden 1.2 patch released. Click here to download!

Author Topic: triggers help plz  (Read 2290 times)

pieceofcheese87

  • Full Member
  • ***
  • Posts: 131
  • ok
    • View Profile
triggers help plz
« on: October 21, 2010, 12:55:18 pm »

 :spikes: hey guys, im a noob to GM, so can someone tell me how to use triggers?  :spikes:         
« Last Edit: October 21, 2010, 01:40:29 pm by justindaneau »
Logged
I like to fart in people's faces when they're eating a gourmet dessert.

Fred-eye-inc

  • Guest
Re: triggers help plz
« Reply #1 on: October 21, 2010, 02:50:43 pm »

There's plenty of advice for this in the actual engine topic. And there's a second engine designed for people who can't use the triggers.
Logged

Valkema

  • Anonly Asia O_O
  • The Guy
  • *****
  • Posts: 1476
  • What. I'm busy right now.
    • View Profile
Re: triggers help plz
« Reply #2 on: October 21, 2010, 04:55:16 pm »

shouldn't this be in the game design section.

But to answer your question, its simple(im asuming you are using gamemaker). Use a variable for the trigger being unactivates then have an object that when you collide with have the trigger activate, and with the object you want to do something. Put in something like if your variable is activated then do certain action

Example Code:
Create Event of Trigger Object:
Code: [Select]
global.trigger = falseCollison with Player Event:
Code: [Select]
global.trigger = trueActivated object's step event:
Code: [Select]
if global.trigger = true {//action goes here}
If you don't know how to code then use variable drag and drop boxes instead.
Make sure the trigger object is invisible.[/color]
Logged

Velocity

  • Sr. Member
  • ****
  • Posts: 387
  • And thou! Beside me, whistling in the darkness.
    • View Profile
Re: triggers help plz
« Reply #3 on: October 25, 2010, 05:16:47 pm »

:spikes: hey guys, im a noob to GM, so can someone tell me how to use triggers?  :spikes:         
:fruit: Putting emoticons at the sides of every single one of your posts is fun, isn't it?  :fruit:
Logged

Ae Zi

  • Full Member
  • ***
  • Posts: 161
  • My smile is but a mask...
    • View Profile
Re: triggers help plz
« Reply #4 on: October 27, 2010, 10:00:05 pm »

:spikes: hey guys, im a noob to GM, so can someone tell me how to use triggers?  :spikes:         
:fruit: Putting emoticons at the sides of every single one of your posts is fun, isn't it?  :fruit:
:kid: FUCK YEA. :kid:
Logged
Quote from: Richard
Ae Zi is now officially the best new guy.

SMITING + CHOCOLATE = HAPPINESS

"Knowing is knowledge." -My tired friend