Tower Defense Style Drag and Drop

Hello together, I need help for my tower defense game. I have different pictures of towers. When I press on these pictures, they should spawn another picture, which I can drag into a desire position on the field. After I placed the object, it shouldn't be possible to drag it again.

I made it to "spawn another picture and drag it" but I don't know how I can make it stay on place.

Many thanks,
Khira

Comments

  • zfreedszfreeds Member Posts: 9
    Make a command for the actor that says, when touch is released, change attribute, Self.Physics.Movable to False
  • outsidethebyteoutsidethebyte Member Posts: 115
    I would use a separate attribute in the object, and only allow your code that moves the object along with the touch location to occur if that attribute is true. Set it to false when the object has been released.
Sign In or Register to comment.