Spawned object is spawned too far away from image point

Bugs will be moved here once resolved.

Post » Fri May 20, 2016 12:51 pm

Spawn object bug
Spawned object is spawned too far away from image point

Attached Capx
http://www.mediafire.com/download/3go9zoo9l69dlyy/magic_story.capx
https://youtu.be/lEK1l7vv9cg

Description of Capx
A typical platform game

Steps to Reproduce Bug
  • Step 1: While player is at the begining press spacebar to fire a bullet
  • Step 2: Move player to the right with arrows
  • Step 3: Fire again a bullet. As far on the right is player so far the bullet is being spawned.

Observed Result
If player is far right at level the spawned bullet is going spawned far too

Expected Result
I expect the spawned bullet to be spawned from the image point it is set.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)

Operating System and Service Pack
Win10 64bit

Construct 2 Version ID
c2 227 64bit
B
5
S
1
Posts: 11
Reputation: 397

Post » Fri May 20, 2016 1:11 pm

You are spawning on Layer 0, which has a different parallax than your other layers. Spawn on the Player layer.
ImageImageImage
B
72
S
22
G
288
Posts: 3,862
Reputation: 158,460

Post » Fri May 20, 2016 1:13 pm

oh....ok...!!!
Thank you so much.
B
5
S
1
Posts: 11
Reputation: 397

Post » Fri May 20, 2016 1:14 pm

There is no bug , you are spawning the bullet on your background layer which has a different parallax setting , i changed it to spawn on the same layer as player and all is well . also you need to change bullet angle when shooting from right side to make everything work right.....perhaps a little more time with the manual !
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Fri May 20, 2016 1:16 pm

thank you granpa !!!
B
5
S
1
Posts: 11
Reputation: 397

Post » Fri May 20, 2016 1:16 pm

Yeah looks like the parallex is causing the fireball to move differently. Spawn them on same layer as the player
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
63
S
14
G
2
Posts: 433
Reputation: 5,631

Post » Fri May 20, 2016 1:21 pm

i would never thought it that it was parallax..... thanks for the help...!!!
B
5
S
1
Posts: 11
Reputation: 397

Post » Mon May 23, 2016 11:46 am

Closing as not a bug.
Scirra Founder
B
414
S
245
G
92
Posts: 25,206
Reputation: 200,353


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests