Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Moving hazard?
« previous next »
  • Print
Pages: [1]

Author Topic: Moving hazard?  (Read 3081 times)

Offline tmerrill420

  • Associate
  • *
  • Posts: 272
Moving hazard?
« on: January 30, 2009, 06:56:18 PM »
Alright, im trying to make a little electric bolt move around the power plant style level i have, i have its movement down and such, but i want it to be moving, go over my character, do 50 damage, flash yellow once and make a sound and keep going.  i have it down but, for some reson it will stick on my char and stop my character from moving, so its pretty much a game over lol. ive tried alot of things but i cant get it to do it.

can someone help me out with this please!?
Logged

Offline X_marks_the_ed

  • trygtt o sizg msw kisg
  • Royal
  • *
  • Posts: 4,394
  • WHAT THE WHY ARE THESE BUTTONS
Re: Moving hazard?
« Reply #1 on: January 30, 2009, 08:07:25 PM »
The simplest answer may be that the bolt is set to 'same level as hero,' try 'above hero.' It's on the basic object principles on the left side.
Logged

Offline Ben

  • Some dude
  • Staff
  • Royal
  • *
  • Posts: 4,844
  • butts
    • my portfolio
Re: Moving hazard?
« Reply #2 on: January 30, 2009, 08:38:28 PM »
Make the bolt jump to another position once it makes the contact with the hero(probably with a variable location)....also, make sure you do what ed says.

Or....try making a switch that is activated when the contact is made....after contact, move the bolt to its starting location and reset the switch....
otherwise, make sure the movement of the bolt ignores impassable objects, because electricity often does that, in if for some reason you find it prudent to keep the bolt on the same layer as the hero, it will continue on
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Moving hazard?
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum