Player and bullet behaviour changes with platforms

Just started using Construct 2? Post your questions here

Post » Tue Mar 04, 2014 1:23 am

I am trying to make the player ( And a turrent) shoot a laser, But whenever they shoot a laser the laser goes off track; happens with change in plateforms; see the attachment and please help.
You do not have the required permissions to view the files attached to this post.
B
18
S
3
G
4
Posts: 63
Reputation: 2,795

Post » Tue Mar 04, 2014 3:55 am

Have you looked at the turrets sample that comes with construct 2? I would also look at some of the tutorials for turrets. The nice thing about turrets is you can make them invisible and pin them to other objects which gives you nice multi-direction shooting.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Sat Mar 08, 2014 12:08 pm

r2cvv I have look at your work and I have found that your image points are wrong. Make sure your image point to proper position. For example if your turret has shooting barrel than your bullet will shoot from that point. Therefore your image point is in center of barrel and not from somewhere else. Also you have Image point 1. You have to specify that points in your code too. I will correct it and then post it to you
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579

Post » Sat Mar 08, 2014 12:42 pm

Anyway it's because you are spawning your laser_beam on layer 0 (the background) rather than on layer 1 (your game layer). Using parallax is just confusing the position a bit - just change events 9 and 10 to Layer 1.

Here you go - updated capx.
You do not have the required permissions to view the files attached to this post.
Last edited by RamPackWobble on Sat Mar 08, 2014 5:39 pm, edited 3 times in total.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Sat Mar 08, 2014 1:33 pm

Here is your demo version I have modified work from this. It should be fine I have notice you have many image points that does not mach with your sprites. Check them too
You do not have the required permissions to view the files attached to this post.
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests