PosSet (SCTRL)

Started by JustNoPoint, October 31, 2015, 12:06:30 AM

Previous topic - Next topic

JustNoPoint

Sets the player's position to the specified coordinates. The X coordinate is relative to the center of the screen, with positive values moving right. The Y coordinate is relative to the floor, with negative values moving up.

Required parameters:
none

Optional parameters:
x = x_value (float)
Specifies the new x-position of the player.

y = y_value (float)
Specifies the new y-position of the player.

Example:
;Fighter Factory 3
[State 0, PosSet]
type = PosSet
trigger1 =
x = 0
y = 0
;ignorehitpause =
;persistent =


Related SCTRL:
PosAdd (SCTRL)
PosFreeze (SCTRL)

Related Triggers:
Pos (Triggers)

Loves Pachirisu

#1
This can prevent any poor coding or poorly coded characters making you stuck into a stance in midair. (The effect isn't immediate however) My Pachirisu and Victini (old characters) hqve this solution.


They use this code:

[State 0, posset]
Value = posset.
trigger1 = time = 0
Y = 0.
Ignorehitpause = 0.

(Accidentally wrote in O (ohs) instead of zeros in the original edits.)

(put this in all standing purposeful states including 0 and even 20 in the common1.cns)
Pokecommunity account (Will start learning about romhacking): http://www.pokecommunity.com/member.php?u=553303

Why are there some people here trying to go into their ways into trying to ruin my Mugen hobby here and make me look like bad?



https://www.youtube.com/watch?v=3_TMrr6eqQc