Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Request / Listing] Help with Sword Engine (GM 6.1)  (Read 1956 times)

0 Members and 1 Guest are viewing this topic.

Solarrain4

The Blurred Line In-Between
[Request / Listing] Help with Sword Engine (GM 6...
« on: May 06, 2006, 09:58:42 pm »
  • ...Is it recording?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 559
Okay, I need some help. When I'm trying to program a sword engine with a Link sheet like MaJoRa's, how do I make the sword so that it doesn't appear above Link when he slashes up, or for the beginning of the slash when to the side?
« Last Edit: February 09, 2012, 02:53:49 pm by Niek »
Logged
06/29/2014 - forever and always <3
Re: Help with Sword Engine (GM 6.1)
« Reply #1 on: May 07, 2006, 12:07:15 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1635
I'm assuming you are storing the direction you are facing in a variable, probably "global.facing". If it isn't global.facing, use whatever the variable is, but for purposes of helping you, I'll call the variable global.facing.

Basically, in the create event of the sword, set the depth based on which direction you are facing. Something like this:

if(global.facing == "up")
  depth = obj_link.depth + 1;
else
  depth = obj_link.depth - 1;

This will say that the sword appears over Link unless you are facing up.
Logged

Solarrain4

The Blurred Line In-Between
Re: Help with Sword Engine (GM 6.1)
« Reply #2 on: May 07, 2006, 08:29:45 pm »
  • ...Is it recording?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 559
Okay, thank you.

Locked.
Logged
06/29/2014 - forever and always <3
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.286 seconds with 43 queries.

anything