A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Superman by Jmaxximus & Electro
by ELECTRO Today at 13:22

» Family Guy Vinny sprites (help needed)
by borewood2013 Today at 13:17

» Balrog vs T.J.Combo:DeathBattle!!!
by spidergoku Today at 13:04

» Falcon project
by Doom Today at 13:04

» cvs chars deviantart
by Doom Today at 12:35

» WE NEED A GOOD MVC FELICIA VERSION FINALLY!!!!
by Doom Today at 12:09

Special Features at MMV





Chat on MMV w/ Discord


Share | 
 

 Help, how can i create a helper in the center of the stage?

View previous topic View next topic Go down 
AuthorMessage
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Help, how can i create a helper in the center of the stage?   Mon 19 Jan - 11:00

well, the tittle is clear: i need to know how to create a helper wich it's coordenates are in the center of the camera in the stage, not just in 1.0 stages, i mean those huge stages as well.
What do should i do to do this? scared
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4610
Join date : 2014-08-11

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Wed 21 Jan - 10:48

A quick test in my MUGEN1.1a4...........

Code:
[State -3, Cooking Mama]
type = Helper
triggerall = NumHelper(888) = 0
trigger1 = 1
name = "Cooking Mama"
id = 888
stateno = 888
postype = left
pos = GameWidth/2,0

-------------------------------------

[Statedef 888] ; Cooking Mama Helper
type    = S
movetype= I
physics = N
velset = 0,0
anim = 888
ctrl = 0
sprpriority = -3

[State 888, PosSet]
type = PosSet
trigger1 = 1
y = 0


The result (the below GIF is big like almost 12MB large, so it may take some time to load...):
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Wed 21 Jan - 15:35

Thank you very much, now i can create the other hyper i wanted, you are a great help, why didn't i even think of this?
Oh god
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Sun 25 Jan - 22:52

but i still have a problem: x coordinates are ok but the y coordinates makes the helper show up on the center of the stage, i need the helper to show up in the center of the camera in the stage, do you know how to do this? it would be very apreciated...
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4610
Join date : 2014-08-11

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Mon 26 Jan - 17:30

Another quick test in my MUGEN1.1a4...........

Code:
[State -3, Cooking Mama]
type = Helper
triggerall = NumHelper(888) = 0
trigger1 = 1
name = "Cooking Mama"
id = 888
stateno = 888
postype = left
pos = GameWidth/2,-(GameHeight/2)

-------------------------------------

[Statedef 888] ; Cooking Mama Helper
type    = S
movetype= I
physics = N
velset = 0,0
anim = 888
ctrl = 0
sprpriority = -3

[State 888, PosFreeze]
type = PosFreeze
trigger1 = 1


The result (the below GIF is big like almost 13B large, so it may take some time to load...):


Used GameHeight for the Y position of the Helper and used PosFreeze instead of PosSet in the Helper.
Now it seems to be placed in the middle of both X and Y coordinates of a stage.
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Thu 29 Jan - 20:46

Ugh sorry, aparently, there was a comunication error: so let me explain this with an image.

For example i need that the y coordinate appear in the center of this zone of the stage, am i clear this time?
Sorry for my comunnication error and thank you in advance for helping me
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4610
Join date : 2014-08-11

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Fri 30 Jan - 9:46

@Mistah Jorge wrote:
Ugh sorry, aparently, there was a comunication error: so let me explain this with an image.
-----------
For example i need that the y coordinate appear in the center of this zone of the stage, am i clear this time?
Sorry for my comunnication error and thank you in advance for helping me

Sorry if I misunderstood your meaning last time.  Embarassed

But this time I am a bit confused........is it that, you want KFM stays in the middle of a MUGEN stage (both x and y coordinates for example, like 320x240 so KFM stays right in like 160x120) all the time, no matter where the screen camera goes? Question
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Midnight-Son

avatar

Posts : 978
Join date : 2012-10-19
Age : 25

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Sat 31 Jan - 16:44

wait wait , is this still about the helper?
or do you want certain stages that work for some mugen versions to be centered in your version?.... if so, then that's something else entirely and needs to be done in the stage codding
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Sat 31 Jan - 17:35

I will try to clarify it once again: the y coordinates of the helper must be in the center of the part where the camera is.
Let me show you in the pictures, i've draw a cross in theese images, so you can understand what i mean:
(Ignore the k.o and the characters, just look at the cross, wich indicates the y position in the camera, not the stage)

Back to top Go down
View user profile
Midnight-Son

avatar

Posts : 978
Join date : 2012-10-19
Age : 25

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Sun 1 Feb - 6:50

I see, you want it as a background, or at least with some of the same characteristics
im not sure if you'll be able to have it move with the screen as the screen moves
but I think you need to change the postype to = back
ill look into it
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Sun 1 Feb - 22:31

it doesn't need to move, only the only in the creation's coordinates
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4610
Join date : 2014-08-11

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Mon 2 Feb - 17:16

Hope this time I got your meaning right.........

I did this in my MUGEN1.0 only, not working with MUGEN1.1a4............

Code:
[State -3, Cooking Mama]
type = Helper
triggerall = NumHelper(888) = 0
trigger1 = 1
name = "Cooking Mama"
id = 888
stateno = 888
;postype = left                    ;;;;;;;;; don't really need this now
;pos = GameWidth/2,-(GameHeight/2)  ;;;;;;;;; don't really need this now

-------------------------------------

[Statedef 888] ; Cooking Mama Helper
type    = S
movetype= I
physics = N
velset = 0,0
anim = 888
ctrl = 0
sprpriority = -3

[State 888, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 1,0

[State 888, PosSet]
type = PosSet
trigger1 = 1
x = 0
y = (Pos Y-ScreenPos Y)+(GameHeight-(ScreenPos Y/2))
ignorehitpause = 1


The result (the below GIF is big like almost 8B large, so it may take some time to load...):

in case imgur not working for you....:
 

My way is probably quite buggy and unreliable..........hope someone can provide a better way...........

Also I want to know a MUGEN1.1a4 way too.... scratch
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Midnight-Son

avatar

Posts : 978
Join date : 2012-10-19
Age : 25

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Mon 2 Feb - 17:38

clap if I could vote up replies I would, im not sure if that's what he wanted though
clap clap clap clap
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 1968
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: Help, how can i create a helper in the center of the stage?   Mon 2 Feb - 17:41

What's what i mean't, thank you, even though it may not work on Mugen 1.1, it's enough (it must work on mugen 1.0 at least)
Thank you Very Happy
Guess i will be back to bussiness, thanks to you
Back to top Go down
View user profile
 
Help, how can i create a helper in the center of the stage?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: