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

bug: non-traffic-light scenery is not rotatable #1717

Open
3 tasks
evemartin opened this issue Sep 4, 2024 · 0 comments
Open
3 tasks

bug: non-traffic-light scenery is not rotatable #1717

evemartin opened this issue Sep 4, 2024 · 0 comments
Labels
bug cadets volunteers Tasks that can be picked up by anyone

Comments

@evemartin
Copy link
Contributor

evemartin commented Sep 4, 2024

Bug
Instead of rotating, when non-traffic-light scenery in the Level Editor grid is clicked on for the first time after being added to the grid, it jumps to the origin.

Steps to reproduce the bug:

  1. Go to the Level Editor
  2. Drag a piece of scenery (not a traffic light, but any other piece of scenery) to the grid
  3. Click on the scenery. Notice that it jumps to the origin
  4. If you move the scenery elsewhere and click on it again, it will not jump to the origin - this only happens the first time the scenery is clicked after being added to the grid.

Expected behaviour:
Scenery items should not jump to the origin when clicked, and when a scenery item is double clicked it should rotate 90 degrees clockwise instead of counterclockwise.

Tasks:

  • Fix non-traffic lights scenery items so they don't get sent to origin on first click
  • Enable clockwise rotation for all scenery items when double-clicking
  • Update traffic light rotation logic so it turns clockwise instead of counter-clockwise

Screenshots
https://github.com/user-attachments/assets/9dd35b19-3e32-446b-96ce-e1ba24517222

@evemartin evemartin changed the title test task bug: strange cow behaviour in Level Editor Sep 4, 2024
@evemartin evemartin changed the title bug: strange cow behaviour in Level Editor bug: non-traffic-light scenery is not rotatable Sep 4, 2024
@ocadotechnology ocadotechnology deleted a comment from evemartin Nov 12, 2024
@faucomte97 faucomte97 added bug volunteers Tasks that can be picked up by anyone cadets labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cadets volunteers Tasks that can be picked up by anyone
Projects
None yet
Development

No branches or pull requests

2 participants