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

#1 2008-02-23 20:27:18

mobbyfett396
Scratcher
Registered: 2008-01-16
Posts: 6

How do you create a game with scrolling and shooting

I am not yet sure on how to do this I need all the help I can get because i am trying to create a halo game including scrolling shooting enemies and the whole shabang

Offline

 

#2 2008-02-24 14:51:17

jackjuan
Scratcher
Registered: 2008-02-23
Posts: 1

Re: How do you create a game with scrolling and shooting

i know how to make easy scrolling

<when green flag clicked><forever if><key[ right arrow ]pressed?><move( 5 )steps>

Offline

 

#3 2008-02-24 15:35:46

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

Re: How do you create a game with scrolling and shooting

Don't try to run before you can walk.

Get to grips with the basics of scratch first, then try to develop these things yourself as your understanding improves.

Come up with a scrolling code and if it doesn't work, ask people to help.

You will get more out of your project if it is your own code - even with some help - than if you just get given everything - if you are just given everyhting, you will find it very hard to understand it and thus won't be able to modify it for your own game.


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

 

#4 2008-02-26 21:48:19

FPSFelix
Scratcher
Registered: 2008-02-06
Posts: 100+

Re: How do you create a game with scrolling and shooting

besides, that script makes the charecter move, not the background.(unless the background is a sprite for the scrolling) that also cannot have momentum.

Last edited by FPSFelix (2008-02-26 21:48:51)


this is what i brought you, this you can keep.
this is what i brought, you may forget me.
i promise to depart, just promise one thing...
kiss my eyes and lay me to sleep.

Offline

 

#5 2008-03-01 12:47:49

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: How do you create a game with scrolling and shooting

Well first make a sidescrolling system where you only sidescroll left and right. To scroll right you would half to touch the right edge of the screen and to scroll left you would half to touch the left edge of the screen. And to shoot you would just click. You could add ammo and stuff if you want. Also there would half to be a limit to how far you can scroll left and right, and some enemies.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#6 2008-03-01 13:02:30

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: How do you create a game with scrolling and shooting

Make a variable: Health
Make a sprite: bullet (Do something to make it look like a bullet. A black line will do.)
Bullet Scripts:
1.When<space key clicked>- show- go to (your character)- repeat until [<touching edge> or <touching (enemy sprite)]- move (2) steps- hide
2. When flag clicked- set health to 10- hide-forever- if <touching (enemy sprite)>- change health by -1

That's about it. There are more advanced ways, but this is the easiest way.

Offline

 

#7 2008-03-01 14:16:50

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: How do you create a game with scrolling and shooting

Rokqo, that does not make it sidescroll. I have an example mobbyfett396 at  http://scratch.mit.edu/projects/Lucario621/110595 . Tell me if it helps or not.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#8 2008-03-04 00:54:18

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: How do you create a game with scrolling and shooting

That makes the bullet, not the scroll. lol

Offline

 

#9 2008-03-04 00:57:28

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

Re: How do you create a game with scrolling and shooting

I just made a scrolling platformer/shooter engine. http://scratch.mit.edu/projects/archmage/112445

You can remix it to make a scrolling/shooting game of your own  big_smile


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

 

#10 2008-03-04 16:19:32

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: How do you create a game with scrolling and shooting

Well archmage, I guess both of ours make what he/her was looking for. Just he didn't ask for something specific, so ours are both different.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#11 2008-03-04 18:06:30

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: How do you create a game with scrolling and shooting

I was helping with the bullet part, not the scrolling.

Offline

 

#12 2008-03-04 19:05:11

Death_Pony
Scratcher
Registered: 2008-03-04
Posts: 1

Re: How do you create a game with scrolling and shooting

How do you do scrolling

Offline

 

#13 2008-03-04 19:58:15

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: How do you create a game with scrolling and shooting

http://scratch.mit.edu/forums/viewtopic.php?id=2440

Offline

 

#14 2008-03-06 13:33:00

teguki
Scratcher
Registered: 2008-03-06
Posts: 72

Re: How do you create a game with scrolling and shooting

rukqo, THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU!

i really needed that shooting tut

now all i need to know is how to upload a bmp file...

Last edited by teguki (2008-03-06 13:35:26)

Offline

 

Board footer