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

#1 2007-08-17 22:01:55

soccrplyer4life13
Scratcher
Registered: 2007-07-28
Posts: 77

Need some help

I'm trying to start work on my own side scroller, and I hit a road block...

http://scratch.mit.edu/projects/soccrplyer4life13/29966


My Projects:
http://scratch.mit.edu/users/soccrplyer4life13

Offline

 

#2 2007-08-17 22:09:11

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

Re: Need some help

Road block? What is wrong with it?

PS: check out my side scroller engine @ http://scratch.mit.edu/projects/archmage/28903


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

 

#3 2007-08-17 22:13:21

soccrplyer4life13
Scratcher
Registered: 2007-07-28
Posts: 77

Re: Need some help

yeah, i'm looking at yours, but i really want to try and create a full level of "contra" as seamlessly as possible...on my example, my first two are fine, and the third one shows when it's supposed to, but doesn't want to move to the left until the other sprites are off the screen


My Projects:
http://scratch.mit.edu/users/soccrplyer4life13

Offline

 

#4 2007-08-17 22:23:29

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

Re: Need some help

Man it's obvious, you made it to repeat the "test" broadcast constantly until x position <-428. So sprite 3 constantly goes to the place where it begins it's scrolling.

Last edited by archmage (2007-08-17 22:23:44)


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

 

#5 2007-08-17 22:26:20

soccrplyer4life13
Scratcher
Registered: 2007-07-28
Posts: 77

Re: Need some help

oops, lol, well, i might have found a better way in the process of not realizing that...thanks


My Projects:
http://scratch.mit.edu/users/soccrplyer4life13

Offline

 

#6 2007-08-17 22:39:12

soccrplyer4life13
Scratcher
Registered: 2007-07-28
Posts: 77

Re: Need some help

http://scratch.mit.edu/projects/soccrplyer4life13/29983

Which one do you think I should go off of, I think both ways would work, but I'm guessing that this way will run slower with all the costume changes, but what do you think?


My Projects:
http://scratch.mit.edu/users/soccrplyer4life13

Offline

 

#7 2007-08-17 23:19:32

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

Re: Need some help

Well if you make them work correctly they are both pretty much the same, just do whatever is easier for you. But I recommend that you don't use glide to blocks because it's pretty much impossible to get side scrolling games working using them.

Last edited by archmage (2007-08-17 23:21:53)


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

 

#8 2007-08-19 01:14:14

soccrplyer4life13
Scratcher
Registered: 2007-07-28
Posts: 77

Re: Need some help

alright, I just can't figure out a healthy way of making this work right, my first 3 sprites, my "backgrounds" just won't make things easy for me.  I want to have roughly 20 of these different maps put together to form one long level for my game, but I'm a bit frustrated by it to be honest.  If you can help, please do, I would greatly appreciate it.

Thanks,
Soccrplyer4life13


My Projects:
http://scratch.mit.edu/users/soccrplyer4life13

Offline

 

#9 2007-08-19 05:12:54

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Need some help

You can reuse the same 2 or three sprites, but have them change costume when they go off the edge of the screen so that they show the next part of the level when they come back on the other end.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#10 2007-08-19 08:07:14

soccrplyer4life13
Scratcher
Registered: 2007-07-28
Posts: 77

Re: Need some help

That's pretty much what I'm going with, but its getting to be pretty ugly code and I'm just trying to see if anyone can help me find an easier way than what I'm doing right now.

Soccrplyer4life13


My Projects:
http://scratch.mit.edu/users/soccrplyer4life13

Offline

 

Board footer