Infinity MUGEN Team

IMT Main => M.U.G.E.N Guides & Tutorials => Topic started by: O Ilusionista on August 14, 2011, 12:13:28 PM

Title: Bind to the Wall
Post by: O Ilusionista on August 14, 2011, 12:13:28 PM
While coding Snakeman's Search Snake, I've discovered a way to make the helper (or the char) to bind on the walls.

For Mugen 1.0:

Quote
[State 0, PosAdd]
type = PosAdd
trigger1 = facing = 1
x =GameWidth-ScreenPos X
ignorehitpause = 1

[State 0, PosAdd]
type = PosSet
trigger1 = facing = -1
x =-GameWidth/2
ignorehitpause = 1

For Winmugen:

Quote
[State 0, PosAdd]
type = PosAdd
trigger1 = facing = 1
x =320-ScreenPos X
ignorehitpause = 1

[State 0, PosAdd]
type = PosSet
trigger1 = facing = -1
x =-160
ignorehitpause = 1

Additionally, if you need to bind the helper to the top of the screen(I don't remember who made that, maybe it was Hero):

Quote
[State 0, PosSet]
type = PosAdd
trigger1 = 1
y = 0-ScreenPos Y
ignorehitpause = 1
persistent = 1
Title: Re: Bind to the Wall
Post by: DEMONKAI on August 17, 2011, 03:15:25 PM
Hmm..  :O*D

data absorbed. saved and ready for my future projects now
SimplePortal 2.3.5 © 2008-2012, SimplePortal