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

#1 2011-06-12 09:59:28

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Remind me again?

How do I make marching-back-and-forward enemies in a scrolling game?


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#2 2011-06-12 10:04:04

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Re: Remind me again?

Never mind. I had a look at one of my older projects.


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#3 2011-06-12 10:04:40

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Remind me again?

http://i51.tinypic.com/35hicfr.gif

EDIT:  Oh, you didn't need it.

Last edited by Kileymeister (2011-06-12 10:05:02)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#4 2011-06-12 10:05:43

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Remind me again?

Code:

forever
go to x: {start x} y: {start y}
  repeat until {finished first loop}
    change x by (10)
    next costume
    // this is so it can actually 'march'
    wait (0.2) secs
  repeat until {back to start}
    change x by (-10)
    next costume
    // this is so it can actually 'march'
    wait (0.2) secs

EDIT: Double outposted. ^^

Last edited by scimonster (2011-06-12 10:06:13)

Offline

 

#5 2011-06-12 10:16:05

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Re: Remind me again?

Kileymeister wrote:

http://i51.tinypic.com/35hicfr.gif

EDIT:  Oh, you didn't need it.

Yeah, that's the code I used in an earlier game. But thanks anyway.  wink


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#6 2011-06-12 11:03:43

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Remind me again?

Off-topic: You're back!

Offline

 

#7 2011-06-12 11:40:35

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Re: Remind me again?

mathematics wrote:

Off-topic: You're back!

Kind of!  tongue  I won't be on the forums as much. At least, not on the Misc forums. But I will still make projects. LOTS of projects, as you might have realised from this topic: http://scratch.mit.edu/forums/viewtopic.php?id=38672


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

Board footer