To be Honest I figured out the last part by just by fiddling around with things I have learn from past experience,, Thanks for the Hint AliceXIII.
I have realize the most important thing wen working in Programing is to look at every detail, if the game does not do what you want you may still have
nearly the right code!
The way you organize the codes can effect the way it works.
The Number of = signs and + sign and number all effect stuff, and by alternating these factors I figured it out!
Collision Right side of Player(BrownObject)
- Code: Select all
char*key=GetKeyState();
if(key[KEY_UP]==1)
{
FlipPlayer=1;
}
if(FlipPlayerR=1)
FlipPlayer=0;
Collision Left side of Player(BrownObject)
- Code: Select all
char*key=GetKeyState();
if(key[KEY_UP]==1)
{
FlipPlayerR=1;
}
if(FlipPlayer=1)
FlipPlayerR=0;
And this is the Up Event of the Player
- Code: Select all
if(crawlup==1)
{
yvelocity = yvelocity - 1;
}
if(FlipPlayerR==1)
{
ChangeAnimation("Event Actor", "Player Right Flipwalk", NO_CHANGE);
}
if(FlipPlayer==1)
{
ChangeAnimation("Event Actor", "Player Right Double Flipwalk", NO_CHANGE);
}
THIS WORKS! And Thanks for The help I have finally got a Better grip on Programing!