collapse

Author Topic: Bind to the Wall  (Read 915 times)

0 Members and 1 Guest are viewing this topic.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12459
  • Country: Brazil br
  • Last Login:Today at 01:17:37 AM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Bind to the Wall
« 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



Offline DEMONKAI

  • The Visionary and IMT's
  • Contributor
  • ****
  • Posts: 8335
  • Country: United States us
  • Last Login:October 11, 2022, 09:44:18 PM
  • Never limit your vision as a creator!!
    • DTHECHEMIST
    • D THE CHEMIST
    • Demonkai's Mugen
Re: Bind to the Wall
« Reply #1 on: August 17, 2011, 03:15:25 PM »
Hmm..  :O*D

data absorbed. saved and ready for my future projects now
Lots and lots of supers so f*ckin what

HAIL CROM!!

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

* IMT Calendar

April 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 [27]
28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal