YesNoOk
avatar

Absolute y axis based on stage axis? (Read 1357 times)

Started by Bannana, January 22, 2015, 08:49:53 am
Share this topic:
Absolute y axis based on stage axis?
#1  January 22, 2015, 08:49:53 am
  • ***
  • Non est hoc propter hoc sed propter est hoc
    • USA
    • doubletrend-zeta.neocities.org/
I'm trying to set a target bind to an absolute axis that can change depending on the y axis of the stage so it doesn't put targets above or below the floor, but I can't seem to work it out with the triggers available and Stagevar doesn't deal with x or y for some reason. There's BottomEdge/Pos Y - ScreenPos Y + GameHeight, but the result isn't based on the stage axis so it just puts them below the floor (based on the default training stage). Perhaps there's something I need to add the the bottomedge expression, but I'm not sure if I even can, so I might as well ask.

     Posted: January 25, 2015, 11:13:31 am
Well, I found it.
Code:
(Pos Y < Pos Y - ScreenPos Y + GameHeight) + 5
Assuming the last number is meant to offset any posset already applied in the state