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

#1 2012-02-21 19:00:10

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

help with rpg

so i have an rpg my movement script is built so that the player is allways i the middle it is as follows

when flag clicked
set (x pos v) to[0]
set (y pos v) to [0]
forever if <(up arrow v) key pressed?>
change (y pos v) by [1]
wait [0.5] secs
end
forever if <(down arrow v) key pressed?>
change (y pos v) by [-1]
wait [0.5] secs
end
forever if <(right arrow v) key pressed?>
change (x pos v) by [1]
wait [0.5] secs
end
forever if <(left arrow v) key pressed?>
change (x pos v) by [-1]
wait [0.5] secs
end
now i would like a script that make object scroll on the screen

could someone tell me haw to do this use this as an example

the player can go all directions so i want a chest at (500, 500) witch is off the screen so i need a sprite that will allow the chest to move around the player making the illusion the player is moving around it.


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#2 2012-02-21 21:01:31

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Offline

 

Board footer