vchelaru / FlatRedBall

Cross-platform 2D game engine focused on ultimate productivity built in .NET
http://flatredball.com
MIT License
377 stars 60 forks source link

Trying to change polygon shape in states should not result in bad generated code #1508

Open profexorgeek opened 23 hours ago

profexorgeek commented 23 hours ago

I have a bookshelf object that needs to have Up, Down, Left, and Right states. Its footprint changes slightly for these states so I thought I'd try exposing the polygon points as a variable that can be edited in the state.

This doesn't work, and that's okay, but it shouldn't leave my project unbuildable due to not generating the right namespace:

image

Marking as "Blocking" because this prevents a project (mine in this case!) from building.

vchelaru commented 23 hours ago

A popup should appear when pressing the << button on the Points variable because this is something that is not currently supported in states. The FRB Editor should let you know so you aren't wondering what to do.

profexorgeek commented 23 hours ago

Update, removing the variable gets it building again. For anyone who might find this, changing polygon points in a state is not a supported scenario as of this comment!