i'm trying to make a scrolling game, i did the basic like creating ScrollX and etc...
But when i try to put the enemy in the game, it scroll with me when i press the left or right.
Then i set the x to ScrollX+480*0 for the enemy, it don't follow the charcter but i can't change the x position of the enemy, it's stuck.
Please tell me a way to make the enemy not to scroll along with character and to make the enemy x position free.
Offline
make a local variable for the enemy called position and put in this script that allows it to move indepedantly
scrollx + 480 * 0 + xposition
and then get the xposition to change depending on the characters x pos
Offline
Offline
09reidt wrote:
make a local variable for the enemy called position and put in this script that allows it to move indepedantly
scrollx + 480 * 0 + xposition
and then get the xposition to change depending on the characters x pos
thank u. the enemy can move freely but it follows the chararcter too.
Offline