Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by beast

I have a test level I have been working on to learn Impact and recently am unable to move entities, either newly placed or existing.
No errors that I can see, I am thinking something is throwing an exception but is being handled. Is there a way to bubble out exceptions or add some type of handler to be able to see any internal exceptions?

Great engine by the way!

1 decade ago by Ken

Did you put your entities on the entities layer? When I first used Weltmeister ( yesterday ) I tried to put them on a new layer and they would not move. As soon as I added them to the entities layer things worked perfectly.

1 decade ago by beast

Yeah, I was able to move them no problem for a while, this issue just started yesterday which leads me to believe I added something that causes an exception but it is not bubbling out.

1 decade ago by dominic

If the entity layer is active, you should be able to select and move entities. I don't catch exceptions at all in Weltmeister, so every error should be reported to the console.

Maybe one of your entities is doing something... funny? Is it just with this one level, or can't you even move entities around, when you create a new level?

1 decade ago by beast

The problem was that I had bound to the mouse1 key in my entity, so they can respond to mouse clicks. That prevents the entity from being able to be selected and dragged about.
Is there a better way to bind the mouse1 key so that the entity at the mouse x,y is selected? I would rather not loop through all the entities of a level.

1 decade ago by beast

Nevermind, by providing the binding in the main.js I can still handle the pressed event in the entity, duh. :)

1 decade ago by stahlmanDesign

I figured out another reason that an entity might become un-selectable. If you use a resizable entity, like Debris, you can stretch it to the size you want. But, if you stretch it in a negative direction, it can no longer be selected. If you open the level file you'll notice that it says -16 or some negative number. Change it to positive number and reload the level. Now you can select it.
Page 1 of 1
« first « previous next › last »