I am trying to make a custom block in BYOB that will make a sprite travel on a certain sprite, like in a scrolling game if a person(NPC) was to walk down the road, but the camera moves with the main character.
I need help with this
Offline
I can help in Scratch
have 4 varibles
Global
Player Scroll X
Player Scroll Y
CPU's
CPU Scroll X
CPU Scroll Y
then on the cpu put:
goto x: | (Player Scroll X - CPU Scroll X)| y: | (Player Scroll Y - CPU Scroll Y)|
Ill make it in BYOB now..
EDIT:
900th POST!
Last edited by johnnydean1 (2010-07-24 12:05:06)
Offline
Are you the same person who made the GTA thread in advanced topics? If so why do keep requireing assistance, have you even attempted it yourself?
Offline
johnnydean1 wrote:
This should work:
http://img827.imageshack.us/img827/5609/block.gif
Is this Byob or Scratch?
Offline
Uhhh... why can't you just use regular scrolling?
Offline
In case anyone is wondering, you just have to
{forever
set X to: "scrollX" + (480) x "NPCscrollX"}
change "NPCscrollX" by (0.01)}
{forever
set Y to: "scrollY" + (480) x "NPCscrollY"}
change "NPCscrollY" by (0.01)}
Key:
" " indicates variable
{ indicates start
} indicates end of line
() indicate numbers
And for the main character, Just use normal scrolling.
_____________________________________________________
Check 'em out! http://scratch.mit.edu/users/smljron
If you need sprites, just ask in comments!
Offline
smljron wrote:
In case anyone is wondering, you just have to
{forever
set X to: "scrollX" + (480) x "NPCscrollX"}
change "NPCscrollX" by (0.01)}
{forever
set Y to: "scrollY" + (480) x "NPCscrollY"}
change "NPCscrollY" by (0.01)}
Key:
" " indicates variable
{ indicates start
} indicates end of line
() indicate numbers
And for the main character, Just use normal scrolling.
_____________________________________________________
Check 'em out! http://scratch.mit.edu/users/smljron
If you need sprites, just ask in comments!
Smljron, please check the age of a post before posting. This is an old thread that does not need to be brought back up. Posting on a very old thread is considered necroposting and is strongly discouraged by the community.

Offline