collapse

Author Topic: Centering Character During Winpose  (Read 390 times)

0 Members and 1 Guest are viewing this topic.

Offline Krishjan

  • Initiate
  • **
  • Posts: 73
  • Last Login:July 23, 2019, 03:52:53 AM
  • Hi! I'm new!!
Centering Character During Winpose
« on: April 13, 2013, 01:30:34 AM »
Hi, I would like to know how to center the camera to a character during Winpose, I have been looking for a solution on this one for a long time can you help me out Pls ?



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Centering Character During Winpose
« Reply #1 on: April 13, 2013, 03:37:36 AM »
Awkward. p2 needs to be in state 5150 for the round to end. But you need him to be in a custom state so you can actually turn his camera movement off. As long as you don't mind it breaking the following will to SOME extent give the effect you desire

[State Width]
type = width
trigger1 = stateno = winpose state
edge = -160,160

Will break if you are too close to the edges of the stage, or if p2 is too far away from you.

Offline Krishjan

  • Initiate
  • **
  • Posts: 73
  • Last Login:July 23, 2019, 03:52:53 AM
  • Hi! I'm new!!
Re: Centering Character During Winpose
« Reply #2 on: April 13, 2013, 05:10:54 AM »
Ok, How will I put Player2 in a custom state?

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Centering Character During Winpose
« Reply #3 on: April 13, 2013, 05:30:34 AM »
That's kinda the point, in this situation you can't. He needs to be in state 5150 for the round to finish. That means you can't custom state him. I suppose you could try custom stating him into your own 5150 and turning off camera movement in your states, that might work, i have never tested it.

Thing is, if you turn it off there, the camera is going to center on p2 regardless of who it is, that will mean your character gives everyone else the effect you want forever, but you don't necessarily manage to apply it to them.

If you were happy to say... make p2 explode so he had no body this would be doable. Or if you were OK with p2 teleporting, or if you wanted your character to jump to the middle of the screen.

Anything that would require p2 being able to actually move OFFSCREEN while still being visible is somewhat impossible...

Actually, i'm going to explain this but it's awkward and you may not get it.

Make sure your winstate has movetype = A, then do the following in the winstate itself.

[State targetstate]
type = targetstate
trigger1 = winko && p2stateno = 5150
value = some number, whatever, you pick
persistent = 0

inside that some number here are the important bits

[State Explod]
type = explod
trigger1 = time = 0
anim = 5150
removetime = -1
bindtime = 1

[state Posadd]
type = posadd
trigger1 = time = 0
x = floor(p2dist X)
y = 200

[state Selfstate]
type = selfstate
trigger1 = time = 0
value = 5150

What this will do is leave behind an explod of a required animation, in this case, death. It is not bound with p2 so it'll stay in place. P2 then teleports himself to you, and underneath you so he is offscreen. You can then use movecamera as much as you wish, p2 will be in your spot so whatever you do you'll be able to center

This is not likely to make much sense.

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

[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]


D2TD VS Showcase Thread by D2TD
[May 31, 2024, 11:44:23 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[May 26, 2024, 07:39:11 PM]


TMNT Hong Kong Stage for 1.0 & 1.1 Re-Release by LightFlare
[May 24, 2024, 01:44:07 PM]


Captain Commando Stage Pack by Vegaz by LightFlare
[May 24, 2024, 09:20:05 AM]


Street Fighter 1 Ultimate Ryu by ELECTRO
[May 22, 2024, 03:58:25 PM]


China Town (Revenge of Shinobi) by Lord_Enemil
[May 22, 2024, 03:02:10 PM]


Neon Light Force Demo by Uche_of_IMT
[May 22, 2024, 10:21:37 AM]

* IMT Calendar

June 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