Okay this is a quiet easy one still I am too stupid to fix it:
My enemy is supposed to shoot an object into it’s own direction (0 or 16) every second.
My enemy has got the ball movement- The bullet has some “custom movement”.
-If the enemy is facing right (0) Set Alterable Value A of Bullet to 1
-If the enemy is facing left (16) Set Alterable Value A of Bullet to 2
So that the bullet will move into the direction its shoot at.
Alterable Value A of Bullet = 1
Set X position of Bullet to X position of Bullet + 6
Alterable Value A of Bullet = 2
Set X position of Bullet to X position of Bullet – 6
So like I said I did that so that the bullet will move into the direction its shoot at/the enemy is facing to the moment the bullet is shoot BUT OF COURSE once the enemy will turn into the other direction the bullet that was moving right will suddenly turn left (Which is all logical).
How can I fix that?
I already thought with my value I would give every bullet an independent value and it wouldn’t care anymore. I hope you people get my problem and can give me a solution.
Thanks
Couldn't you just put a flag there? When bullet is 'shot', the flag turns on. Then add a 'flag _ is off' condition to the enemy facing event..
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
there are many ways
i could have also done set value of bullet to direction value of enemy...
i just used the ball movement and create at since i am lazy
thx anyway