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

#1 2009-04-16 20:18:04

L-GamesInc
Scratcher
Registered: 2008-12-02
Posts: 10

how do i make another sprite move on a scroller?

how would i make another sprite(the enemy) move on a scrolling game without making it scroll on top of the terrain?

Last edited by L-GamesInc (2009-04-16 20:41:43)


I like cream cheese and video games (including programming them with scratch!)

Offline

 

#2 2009-04-17 22:29:23

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: how do i make another sprite move on a scroller?

Use the variable movement to recored movement


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#3 2009-04-18 01:42:01

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: how do i make another sprite move on a scroller?

its not easy, but i could try explaining depending on your willingness to learn

Offline

 

#4 2009-04-18 02:36:31

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: how do i make another sprite move on a scroller?

Its simple

put this on your enemy sprite after you create a local variable called movement

when flag clicked
forever
set x to ( scrollX+movement)

Then if you want this sprite to move just change the movement variable.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer