Please Help with World Deletion

0 favourites
  • 2 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hello! I am currently working on a little project in which you can shape your own landscape and plant villages in different places and they will interact etc. That is the basic concept in my mind. I've only started world creation. I can create hills and things perfectly fine, but I am having trouble with deletion. Basically as long as you are clicking you can make hills out of little blocks, and I want it so when you right click the blocks they are deleted. The only two ways I could think of were to make it so when I right click it deletes the block but that just deleted all the blocks. So I used "on Right button clicked on solidTile" "Delete".

    This does what I want, but you have to click every time to delete a block. I want it so you just hold the button and drag to delete blocks. I tried adding a repeat every 0.1 seconds but I cant as it is "button CLICKED" and not "button down" or whatever. I want to know is there any way around this? Thanks in advance.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Check if

    Right mouse button is down

    Cursor is over object BLOCK

    Destroy BLOCK

    This way, if the right mouse button is down and the mouse is over the object, it destroys/deletes it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)