YesNoOk
avatar

Is it possible: 2 questions (Read 389 times)

Started by ShinzuiUindo, August 26, 2008, 08:26:58 am
Share this topic:
Is it possible: 2 questions
#1  August 26, 2008, 08:26:58 am
    • su-site.ucoz.com/
1. Is it possible to use the stage's name in a piece of code (or something else realted to the stage).
2. Is it possible to use the x and y positions of the stage, not the screen? I mean, if x is -100, that is 100 pixels to the right from the left corner of the stage, NOT 100 pixels to the right from the left corner of the screen.
Re: Is it possible: 2 questions
#2  August 26, 2008, 08:39:49 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
the first part i am not completely sure i heard of some sort of code to detect a stage you on i doubt it has anything to do with the stages name though, and the code probably has many downfalls..

the second part i think you need to use screen pos even though you said you don't want to  :-\
Re: Is it possible: 2 questions
#3  August 26, 2008, 10:07:41 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
X and Y values are almost always relative to the screen that's displayed. The only one that's off is posset with Y. 0 = floor level in that situation. Otherwise no.

There is a code for checking the Z offset which can tell you what stage you're on, but that value has to be unique to the stage or it won't work. You cannot test on stage name.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Is it possible: 2 questions
New #4  August 26, 2008, 06:53:56 pm
    • su-site.ucoz.com/
Then if I know the stage and the starting position of the char I could use a variable to play the role of a Y offset, and change everytime the char moves... or not?

EDIT: I can't find anything about that Z offset. How is it used?
Last Edit: August 26, 2008, 06:57:32 pm by ShinzuiUindo