Sniper Scope example

Show us your completed creations made in Construct 2

Post » Mon Jan 16, 2012 3:09 am

Sniper Scope example. (not really a game)

Graphics created by me, feel free to re-use if you want.



EXAMPLE PLAY

DOWNLOAD CAPX

Note, The physics go a bit mad in the browser example?

The capx is not effected.chrisbrobs2012-01-16 03:13:45
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Mon Jan 16, 2012 10:50 am

Pretty cool. I liked the example
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Thu Jan 19, 2012 1:02 pm

Ah, haven't had a *deep* look but I think you're telling the shot to go from the tip of the mouse cursor instead of the center of the cross-hair?
When moving the mouse around fast and clicking I started shooting things before the cross-hair gets there. Is it meant to move slower than the mouse? It has a nice sniper feel to it's movement so I was assuming that is the case.
B
21
S
7
G
3
Posts: 33
Reputation: 4,522

Post » Thu Jan 19, 2012 1:22 pm

Very nice....especially the lag of the cross hair...
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Thu Jan 19, 2012 1:59 pm

xanxion@
Pretty cool. I liked the example

Thanks
----------------------------------------------------------
Blam@
Ah, haven't had a *deep* look but I think you're telling the shot to go from the tip of the mouse cursor instead of the center of the cross-hair?
When moving the mouse around fast and clicking I started shooting things before the cross-hair gets there. Is it meant to move slower than the mouse? It has a nice sniper feel to it's movement so I was assuming that is the case.


I used the mouse x,y because im my original version the background scrolled and you could zoom in and with a right click
(I stripped the other stuff out of this version to make it easier to understand)

You could add an extra event that compares the x,y position of the crosshairs when firing? (in the shoot stuff group)
OR make adjustments to the 'lerp' settings to tweak it.
------------------------------------------------------------------
Weishaupt@
Very nice....especially the lag of the cross hair...

Thanks.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 4 guests