Help with World Creation and Deletion

Get help using Construct 2

Post » Sun May 19, 2013 12:56 am

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.bleddyuffles2013-05-19 01:20:39
Posts: 54
Reputation: 358

Post » Sun May 19, 2013 1:02 am

Mouse clicked object - Destroy object.
Image Image Image Image Image Image
Posts: 1,166
Reputation: 18,090

Post » Sun May 19, 2013 1:05 am

Again, I tried that but it only deletes on object per click. I want to be able to hold down the mouse button and delete multiple objects.
Posts: 54
Reputation: 358

Post » Sun May 19, 2013 3:47 am

Maybe try having onMouseOver (cursor is overlapping object), and onMouseButtonDown (you're holding down right click)?
Posts: 3
Reputation: 306

Return to How do I....?

Who is online

Users browsing this forum: Axiomaltd, brainhome, iceangel, Phobos70, rexrainbow, Smileh and 1 guest