xvelocity = xvelocity = +5;
RedvsBlue126 wrote:how do you make your player change directions when going the other way?
x-=3;
right=0;
if(anim==0)
{
ChangeAnimation("Event Actor","WalkLeft",FORWARD);
anim=1;
}
x+=3;
right=1;
if(anim==0)
{
ChangeAnimation("Event Actor","WalkRight",FORWARD);
anim=1;
}
anim=1;
RedvsBlue126 wrote:How do you make your player shoot?
if(right==1)
{
ChangeAnimation("Event Actor","ShootRight",FORWARD);
}
if(right==0)
{
ChangeAnimation("Event Actor","ShootLeft",FORWARD);
}
//CreateActor=>Ammo
ChangeAnimation("Event Actor","StopRight",FORWARD);
ChangeAnimation("Event Actor","StopLeft",FORWARD);
if(Player.right==1)
{
angle=0;
}
if(Player.right==0)
{
angle=180;
}
directional_velocity=15;
RedvsBlue126 wrote:I also have a problem that whenever my platform is uneven my player falls through it
if(variable1==1)
{
//change view parent to offscreen
}
if(variable1==0)
{
//change view parent to player
}
Users browsing this forum: No registered users and 1 guest