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

#1 2011-02-03 16:13:03

scratcher42
New Scratcher
Registered: 2011-02-03
Posts: 1

How to make a sniper scope background move

Hi i am new to scratch as you can see by the number of posts i have made, but i was making a game which involves a sniper scope(The sniper scope is the stage rather than sprite) and not sure how to get it to move about and shoot things?
please help?

Offline

 

#2 2011-02-04 22:04:33

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to make a sniper scope background move

I've never seen a sniper game on scratch, though I have attempted once or twice to make one, but each has been a failure.

Anyway, do you mean that the background is the scope?  Because it would probably be easier to just make a sprite the same size as the background, because you can layer sprites.

The approach I'd take is make the scope stationary and have all the objects move around it relative to the mouse's coordinates.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2011-02-04 22:13:12

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to make a sniper scope background move

I'd agree that I would work much better to make the scope a sprite. Otherwise, it would get hidden behind everything else. If the scope is intended to move, you can just have it go to the mouse's position with the [Go to mouse] block.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-02-05 02:27:22

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: How to make a sniper scope background move

You can't make the background move, so you'd have to use a sprite.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#5 2011-02-05 23:10:09

08jackt
Scratcher
Registered: 2007-09-12
Posts: 1000+

Re: How to make a sniper scope background move

you mean like a zoomed in sniper? you should check out the project here for an example.


http://i39.tinypic.com/jgtswi.png

Offline

 

#6 2011-02-06 14:54:53

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to make a sniper scope background move

08jackt wrote:

you mean like a zoomed in sniper? you should check out the project here for an example.

Thanks; that is what I meant.. not sure if it made sense when I said it.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#7 2011-02-07 21:00:49

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to make a sniper scope background move

Thanks Scratcher42, your question inspired me to make my own sniper game.  Before now I've tried twice and failed the first time, and stopped after the second.  But now I've proveed that the only limit to what I can program is computer power, not my ability.

I haven't posted it online (yet), but the actual sniper/scope part is done.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer