Placing objects on a layer with "Parallax in editor"

Report Construct 2 bugs here.

Post » Tue Feb 03, 2015 9:46 am

Problem
When trying to create elaborate levels in the C2 editor, you need to use "Parallax in editor" so that when you place sprites it will be an accurate representation of what you see when you play the game. If the layout has been scrolled at all, when placing an instance of a sprite on to a layer with parrallax, the sprite will disappear offscreen. The sprite is not placed where the mouse is, it is not taking into account the parallax. This problem is making it extremely difficult to make any game with parallax layers.

Example Capx
https://copy.com/X8BvMr9fKCPllIWt?download=1

Description of Capx
A layout that is wide with the "Parallax in editor" property set to "Yes". There is a single circular sprite available.

Steps to Reproduce Bug
  • Scroll the horizontal bar at the bottom of the C2 layout roughly 50% of the way
  • Try placing the Sprite into the center of your screen
  • Notice that the Sprite is not visible, it was not placed where your mouse was
  • Keep scrolling the horizontal bar to the right in search of the sprite
  • Once you've found the sprite, try dragging it to the center of the layout to where you originally tried placing it

Observed Result
The sprite that was placed on the layout, went off screen in the distance

Expected Result
I expected the sprite to take into account the parallax of the layer, and position the sprite exactly where my mouse was.

Or as Tokinsom puts it:
Tokinsom wrote:The object is appearing at your mouse + the parallax offset. Subtract parallax offset when placing instances with parallax preview enabled.


Construct 2 Version ID
r196
Last edited by alspal on Sat Feb 07, 2015 12:17 am, edited 1 time in total.
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,224

Post » Thu Feb 05, 2015 12:21 am

hmm i think is because the layer0 have the parallax set to 40, 40
i think the work around will be setting the layer parallax do 100, 100 and build your level before change for the value you want
B
48
S
5
G
6
Posts: 210
Reputation: 6,277

Post » Thu Feb 05, 2015 4:59 am

That defeats the point of using the "parallax in editor" setting. The point being is that it is suppose to allow you to work on a layout with parallax layers more accurately and efficiently. With the setting turned off, everything is guess work. You can't know where an object is going to be, in game, so you have to constantly test the game to see if things are lining up, or turn on/off the setting all the time for each layer.

Ultimately this results in a lot of tedious nonsense, and makes working on a game with parallax backgrounds a nightmare.
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,224

Post » Thu Feb 05, 2015 2:28 pm

The object is appearing at your mouse + the parallax offset. What you're expecting is more of a new feature than a bug. (Subtract parallax offset when placing instances with parallax preview enabled)
Image
B
234
S
27
G
13
Posts: 1,784
Reputation: 18,274

Post » Sat Feb 07, 2015 12:15 am

Thanks @Tokinsom, I like the way you worded the issue.

Yeah you're right, you could view these topics as either bugs or feature requests (or both at the same time!). Personally, I view it as a bug because the software isn't behaving as it should be.
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,224

Post » Sat Feb 21, 2015 5:11 am

Is there any way around this issue? i was using the parallaxing to make my game look nicer, but it was preventing the character from shooting (a vital element of the platform shooter)

[EDIT] i found out that the character IS SHOOTING, but the bullet spawns very far away from the character once it moves. ill make a crude diagram here

Player = O
bullet = >
Player Shooting, Bullet on top = (>)


_ _(>)_ _ _ _ _ Normally the bullet spawns from right on top of the character
_ _ _ O_ _ > _ but moving a short distance makes the spawning point of the bullet way off
Last edited by HerrVonClaussen on Sun Mar 15, 2015 12:38 am, edited 1 time in total.
B
7
S
1
Posts: 20
Reputation: 585

Post » Mon Mar 02, 2015 7:38 am

@HerrVonClaussen I'm not sure what you mean about parallax preventing your character from shooting, is that related to the bug in this topic?
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,224

Post » Wed May 13, 2015 1:20 am

Is this going to be possible to fix?
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,224


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests