Crosshair in a Platformer

Get help using Construct 2

Post » Mon Jul 15, 2013 11:41 pm

Hi guys,

I'm trying to get a crosshair going in my 2D platformer but couldn't come up with something reliable. I've tried searching but couldn't find anything similar.

My original solution was to use a really fast bullet that when it collided with a wall, the crosshair would appear. However the bullet travels too fast and flickers causing it to miss the collision with the wall most of the time.

I should note that there's no mouse in this game.

Any help would be appreciated.

funkyos2013-07-15 23:45:46
B
19
S
6
G
2
Posts: 57
Reputation: 2,524

Post » Tue Jul 16, 2013 12:19 am

Could you explain how your crosshair works , I may have found a solution for your problem myself while playing around with collision position detection
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Tue Jul 16, 2013 12:25 am

I'm not sure what you're trying to do with the crosshair, but would something like this help?
(Instead of creating a laser, you just move a crosshair sprite to where the laser ends.)Zero62013-07-16 00:27:02
B
13
S
4
Posts: 117
Reputation: 2,242

Post » Tue Jul 16, 2013 3:39 am

Thanks so much!

The laser example was perfect. I incorporated it into my project. Here's a sample https://www.dropbox.com/s/vx2uu7tas8h4sq9/crosshair.capx
B
19
S
6
G
2
Posts: 57
Reputation: 2,524


Return to How do I....?

Who is online

Users browsing this forum: asdtricky, brunopalermo, ST314 and 41 guests