This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-11-14 21:55:26

Jpa9000
Scratcher
Registered: 2009-10-08
Posts: 4

scrolling with two character

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

 

#2 2010-11-15 16:44:06

09reidt
Scratcher
Registered: 2010-07-08
Posts: 3

Re: scrolling with two character

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

 

#3 2010-11-15 17:05:18

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Offline

 

#4 2010-11-15 18:12:22

Jpa9000
Scratcher
Registered: 2009-10-08
Posts: 4

Re: scrolling with two character

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

 

Board footer