Change to collidable size

G'day,
Changing the size attributes of an actor does not appear to change the size of it's collision shape. Does anyone know a way to change the size of the collision shape?
What I am trying to do is a selection box. Spawn an actor at a mouse location, contain it's size to the difference between that position the ongoing mouse position and anything that collides with it will be selected.
An alternative might be to spawn a new actor at the correct size on mouse release, but I still need to be able to specify the collidable size of that actor.
Thanks for any help
Tangle.
Changing the size attributes of an actor does not appear to change the size of it's collision shape. Does anyone know a way to change the size of the collision shape?
What I am trying to do is a selection box. Spawn an actor at a mouse location, contain it's size to the difference between that position the ongoing mouse position and anything that collides with it will be selected.
An alternative might be to spawn a new actor at the correct size on mouse release, but I still need to be able to specify the collidable size of that actor.
Thanks for any help
Tangle.
Comments
Rule
When Touch is Pressed
--Constrain Attribute
self.Width to magnitude(self.position.X - devices.mouse.position.X, self.position.Y - devices.mouse.position.Y)
Do the same for the Height and place it within the same Rule and it should work.
By the way. Sorry I didn't reply earlier. I've been very busy. haha
They do know about it and definitely are trying to fix it.
Also in your case constrains generally override collisions so that may be affecting things too. That however is not a bug.