i need a way to make independent variables for clones. is there any way to do this?
This might help:
im making a tank game. the problem is, by moving the turret around, the bullet also moves
i need an independent variable to fix this
it needs to be able to shoot in all directions
there is a boolean called this.isClone
that will return true/false depending on if it’s a clone. hopefully this will help you.
i need to make a bullet move in a certain direction. right now i am using sin and cos. is there any easier way to do this?
not really, unless you use vectors to represent rotation… wait nevermind you’d still need sin and cos to rotate the vector.
It’s likely that you need to have your bullets in a clip that is not nested in the tank clip
1 Like