Appo Posted June 26, 2009 Report Share Posted June 26, 2009 hey, i'm mid way through conveting the worlds engin to use in a mario game but i've come across something i can't figure out, in mario games when you grab a power up everything stops until you've transformed i've got all of that sorted, so what i'm asking help for is how to carry on any movement you were doing before you got the power up. For example when you jump and collect a mushroom after transforming mario carries on his jump, however in my engine after the transform action has taken place it's like his x and y values are reset and he just falls back down, help on this would be greatly apreciatedd Link to comment Share on other sites More sharing options...
Violet CLM Posted June 26, 2009 Report Share Posted June 26, 2009 Either store the x and y values to some other variables during transformation and then put the numbers back into the movement values, or just don't read from them or alter them during transformation. Link to comment Share on other sites More sharing options...
Appo Posted June 26, 2009 Author Report Share Posted June 26, 2009 I've tried that but still no luck arg Link to comment Share on other sites More sharing options...
Streak Thunderstorm Posted June 26, 2009 Report Share Posted June 26, 2009 Try setting the framerate to 0 and then after that add 5 to it until it gets to 60. Use an alterable value of course. This can also be used for something like huge hits or impacts. Link to comment Share on other sites More sharing options...
Appo Posted June 26, 2009 Author Report Share Posted June 26, 2009 hmm, the frame rate doesn't sseem to change and it doesn't look like anything else is controlling it, anyways if the frame rate goes to 0 doesn't that mean the animations won't play like growing or shrinking? Link to comment Share on other sites More sharing options...
Realm0D Posted June 26, 2009 Report Share Posted June 26, 2009 hmm, the frame rate doesn't sseem to change and it doesn't look like anything else is controlling it, anyways if the frame rate goes to 0 doesn't that mean the animations won't play like growing or shrinking? The only help I can think of is exacly what they said, which is store the values once it's activated. the once its complete set the actual values eg X & Y stored...you can send the data from the stored to the actual. you get me? That's all I can think of. Link to comment Share on other sites More sharing options...
Appo Posted June 26, 2009 Author Report Share Posted June 26, 2009 yeah, the thing is though it's not the x and y possitions its the values that accelarate and deccelarate you as you jump such as jumping up to a platform but half way through the jump you get a mushroom you puse as the transform animation happens then carry on through the jump as normal, but at the moment if i do that he gets the mushroom pauses as he transforms but instead of carrying on through th jump he just falls back down Link to comment Share on other sites More sharing options...
Violet CLM Posted June 27, 2009 Report Share Posted June 27, 2009 So store those. You are not at the mercy of your engine... either you can bring those same values for acceleration and all back later, or you can temporarily disable the code that's checking them and moving the player and setting them to 0. Link to comment Share on other sites More sharing options...
Appo Posted June 27, 2009 Author Report Share Posted June 27, 2009 Thanks for the help guys, i know the basic method of what i have to do it's just i don't know which value or event is controlling this, i've tried to play around with the values x speed and y speed but that dosen't seem to work i'll keep on having a look but i don't know EDIT: omg i can't belive i've been so stupid i've done the simplest thing and it works, baically when you get a mushroom i've got the action set to twelve this is where the animation takes place and the xallowflag and yallowflag values are turned to 0, anyways i've just added the line 'Action is <12>' to things that have to do with x and y control and it works so thanks for the help Link to comment Share on other sites More sharing options...
Realm0D Posted June 27, 2009 Report Share Posted June 27, 2009 Thanks for the help guys, i know the basic method of what i have to do it's just i don't know which value or event is controlling this, i've tried to play around with the values x speed and y speed but that dosen't seem to work i'll keep on having a look but i don't knowEDIT: omg i can't belive i've been so stupid i've done the simplest thing and it works, baically when you get a mushroom i've got the action set to twelve this is where the animation takes place and the xallowflag and yallowflag values are turned to 0, anyways i've just added the line 'Action is <12>' to things that have to do with x and y control and it works so thanks for the help Glad to see you solved it . Your welcome. Link to comment Share on other sites More sharing options...
Recommended Posts