Hello,
I just started with "GE".
I am trying to make a simple Space invaders game.
The first problem I encountered is the following:
I have an enemy named: enemy_001
Now i made a wall outside the screen on the left side.
When enemy_001 starts the move to the left (i used enemy_001.xvelocity = -1; in Draw actor --> script editor of enemy_001), and it hits the wall outside the screen, it it supposed to "bounce off" to the right. (It moves on the x-coördinate).
So when it hits the wall I used enemy_001.xvelocity = xvelocity +1; in collision --> script editor in enemy_001.
What happens now when it hits the wall, it still moves to the left.
I know I am doing something wrong, but I don't know what.
What do I need to do, so that when it hits the wall, it bounces of to the right.
Thanks in advance,
Mark
PS. sorry for my broken english, but i am dutch