Isometric Laser Firing Issues

Get help using Construct 2

Post » Mon Feb 10, 2014 12:24 am

I am having a major issue with the laser gun in my current project.

What's supposed to happen:
Press and hold space to fire laser, laser fires out of corresponding imagepoint on PlayerSprite to Mouse.Y vs PlayerDirection.Y.

What is happening:
Works relatively fine when ship is stationary, but has glitchy positioning issues... However when the ship has pulled a complete 360, it works fine.
When the ship moves down, firing the laser while the mouse is below the ship on screen causes the laser to lose its position and seemingly fire out of some sort of parallax super-sampled position.

Help! I am completely lost. Here is the capx.
B
8
S
1
G
1
Posts: 19
Reputation: 1,093

Post » Tue Feb 11, 2014 1:42 am

Bumping because I'm afraid no one will see it on the fourth page :/
B
8
S
1
G
1
Posts: 19
Reputation: 1,093

Post » Tue Feb 11, 2014 8:24 am

Your issue is setting the laser to a different layer.
Instead of doing that you could just send it to the bottom or the top of the layer to change the z-order.

I've changed your capx, so the laser is created on space down and destroyed on space released, is pinned to the ship and the z-order is done in the way as described above.

laser.capx
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Feb 12, 2014 2:24 am

Thanks so much! That was super helpful.
B
8
S
1
G
1
Posts: 19
Reputation: 1,093


Return to How do I....?

Who is online

Users browsing this forum: Apollo14, Google [Bot], Yahoo [Bot] and 10 guests