Bullet direction and checkpoint system
Posted: Mon Jun 27, 2011 4:57 pm
Hey guys so I'm trying to make it so if I am turned right, the bullet will go xvelocity++25; and if im turned left, xvelocty=-25; so I put
in my draw actor script of my bullet, and it seemed to work but if I shot a bullet right, then turned left, the bullet would turn left in mid air... and also, the bullets that I shoot left, I cant seem to position them in front of the gun since I already positioned them in front of the gun turning right. so they shoot from the same point which looks off.
and now about my checkpoint system:
my checkpoint is working, but I cant seem to get the view to continue to follow the character and be placed exactly where it was in front of the player after I get respawned at a checkpoint. and my view also stops parenting the player, or vice versa. any way that I can position my view back where it was in front of the player and continue to parent him? and if anyone has a better way to get the view to move with my character a little better without parenting, Id really appreciate it.
- Code: Select all
if (bulletdir==1)
{
xvelocity=+25;
}
else if (bulletdir==0)
{
xvelocity=-25;
}
in my draw actor script of my bullet, and it seemed to work but if I shot a bullet right, then turned left, the bullet would turn left in mid air... and also, the bullets that I shoot left, I cant seem to position them in front of the gun since I already positioned them in front of the gun turning right. so they shoot from the same point which looks off.
and now about my checkpoint system:
my checkpoint is working, but I cant seem to get the view to continue to follow the character and be placed exactly where it was in front of the player after I get respawned at a checkpoint. and my view also stops parenting the player, or vice versa. any way that I can position my view back where it was in front of the player and continue to parent him? and if anyone has a better way to get the view to move with my character a little better without parenting, Id really appreciate it.