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

#1 2010-07-24 11:41:27

Thomas96
Scratcher
Registered: 2010-03-25
Posts: 100+

Byob Gta

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

 

#2 2010-07-24 12:02:29

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Byob Gta

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)


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-07-24 12:12:13

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Byob Gta

This should work:
http://img827.imageshack.us/img827/5609/block.gif


You can now reach me on Twitter @johnnydean1_

Offline

 

#4 2010-07-24 12:21:00

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Byob Gta

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?


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-07-25 16:07:53

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Byob Gta

umm are you there...


You can now reach me on Twitter @johnnydean1_

Offline

 

#6 2010-07-28 12:10:18

Thomas96
Scratcher
Registered: 2010-03-25
Posts: 100+

Re: Byob Gta

Sorry, I've been busy with other things but yes, I have posted another post about this, the reason is that I don't want 1 forum thread with loads of people souting out answers about loads of different problems with my game

Offline

 

#7 2010-07-28 12:11:20

Thomas96
Scratcher
Registered: 2010-03-25
Posts: 100+

Re: Byob Gta

johnnydean1 wrote:

This should work:
http://img827.imageshack.us/img827/5609/block.gif

Is this Byob or Scratch?

Offline

 

#8 2010-07-28 12:25:34

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Byob Gta

Byob


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2010-07-28 14:18:38

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Byob Gta

Uhhh... why can't you just use regular scrolling?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#10 2010-08-10 15:04:14

Thomas96
Scratcher
Registered: 2010-03-25
Posts: 100+

Re: Byob Gta

I am using regular scrolling, but the problem has been fixed

Offline

 

#11 2011-10-09 21:28:33

smljron
Scratcher
Registered: 2011-06-25
Posts: 21

Re: Byob Gta

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

 

#12 2011-10-09 21:48:19

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Byob Gta

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

 

Board footer