R99 - Sprite X and Y with scaling box.

Bugs will be moved here once resolved.

Post » Wed Aug 15, 2012 12:24 am

I'm doing some tests with the scaling features.

So, you can notice a weird issue with the position detecting when scaling the game.

How to reproduce
Prepare the .capx
- Start a new project;
- Make a empty sprite object;
- Make one boolean instance;
- Import the mouse input;
- Write the follow conditionals:
-- When mouse.Y is up the sprite.Y -> Boolean is "true";
-- When mouse.Y is down the sprite.Y -> Boolean is "false"
- Make a text on the canvas to show the Boolean and update it every tick (for example, "Boolean: " & sprite.boolean_instance_here);
- Preview, check, your code is showing true and false right;

Reproduce the bug:
- Configure the canvas to scale for any size;
- Check the instance, it only detect the old sprite position instead of detecting the real sprite.Y on your screen;

It broken my source code, because I can't check complex events when using touch and mouse, checking their position in relation of a sprite, for example.

A sample working without zoom: https://dl.dropbox.com/u/47035927/00%20-%20EQUILIBRIUM/index.html

And the same, but scaled: https://dl.dropbox.com/u/47035927/temp/BUG/index.html

Also, I would like know if anything else is necessary to improve my reports? It's going well or bad?

Thanks.
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,213
Reputation: 18,484

Post » Fri Aug 17, 2012 7:27 pm

Can you always remember to attach a minimal .capx reproducing the problem, as described in how to report bugs? There are loads of bug reports for me to look at, and it takes much longer if I have to spend a few minutes trying to follow your description accurately.

In this case I followed your steps and could not reproduce any problem:
https://dl.dropbox.com/u/15217362/mouse-position-bug.capx
Seems to be working fine. This is another reason to include your .capx, because it is likely you are doing something different to what I set up just now.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Aug 17, 2012 10:40 pm

My bad Ashley, it was a misundestand about the mouse.absoluteY and mouse.Y .

Thanks!
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,213
Reputation: 18,484


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests