Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resizing objects doesn't take their width/height into consideration #193

Open
mchlnix opened this issue May 4, 2024 · 0 comments
Open
Labels
feature New feature or request foundry Concerning the level editor mostly.

Comments

@mchlnix
Copy link
Owner

mchlnix commented May 4, 2024

For objects that expand more than 1 block per index (best example pipe boxes) the resizing seems confusing.

When we resize we take the distance of the cursor to the x,y position of the object, with every block difference meaning one index different.

But when an object grows an entire screen, like the pipe boxes, with every index, we have a problem.

Resizing a Pipebox of size '1', which shows as 16 blocks, means as soon as we move the cursor on block to the right, it is now 15 units, aka 15 indexes aka 15 * 16 blocks long.

This isn't a problem for most objects, which only get longer by one or maybe 2 blocks per index, but for bigger ones (maybe even only the pipebox) it's a problem.

Let's see if we can find/calculate the "length per index" of objects and resize them correctly.

@mchlnix mchlnix added feature New feature or request foundry Concerning the level editor mostly. labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request foundry Concerning the level editor mostly.
Projects
None yet
Development

No branches or pull requests

1 participant