Index · Preferences · Help
Announcements · Bugs and Issues · Feature Creep · Newbie Central · Graphic Arts · Songs & Sound FX · Prose and Cons · Babble
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (7)] [Return to Bugs and Issues]

Author:ArcaneDragonX [Posts]
Date:11/22/08 6:58 pm
Topic:Re: Platformer Demo Problem
Post ID:50
Parent ID:49
Next ID:51
I don't know why you wouldn't keep it simple like adding a couple extra vars in like facing_right and facing_left. When you call Left() or Right(), just change them like this:

var
     facing_left = 0
     facing_right = 1 //set a default direction

proc
     Left()
          facing_left = 1
          facing_right = 0
     Right()
          facing_right = 1
          facing_left = 0

//If you wanted to check the direction you could make something like this
//so that you wouldn't need to worry about the actual direction, just the variable. 
//Trust me, it works really well.

proc
     CheckDirection() //1 is right, 0 is left
          if(facing_right)
               return 1
          else
               return 0

In any case, Xooxer, your demo is probably the greatest thing I've seen on BYOND in such a long time. I've messed with it for the entire extent of today and tweaked it to my specification, and I found it to be the BEST pixel based engine on BYOND to date. Good job bro, and thanks a lot.

Messages in this Thread: [Show All (7)]

  Platformer Demo Problem Fugsnarf (9/22/08 2:08 pm)
      Re: Platformer Demo Problem Xooxer (9/22/08 2:25 pm)
          Re: Platformer Demo Problem Fugsnarf (9/22/08 2:48 pm)
              Re: Platformer Demo Problem Xooxer (9/22/08 3:34 pm)
                  Re: Platformer Demo Problem Fugsnarf (9/22/08 3:39 pm)
                      Re: Platformer Demo Problem ArcaneDragonX (11/22/08 6:58 pm)
                          Re: Platformer Demo Problem Fugsnarf (11/29/08 9:51 am)