How do I place blocks on click

Get help using Construct 2

Post » Sat Nov 29, 2014 7:10 am

how do i have the player place a block with right click?
B
15
S
5
Posts: 22
Reputation: 1,062

Post » Sat Nov 29, 2014 7:35 am

I guess "that" is pretty simple but it depends on what you want to do with it next...

Add a mouse to your layout
And create an event;
On mouse clicked right -> system.create object your block
Then set the blocks position to your mouse.X and mouse.Y in the same event with your block.set position

If you add the dragg behaviour to your block you should be able dragg it around....

But like i said, it really depends on what you are going to do with it afterwards...
B
4
Posts: 12
Reputation: 224

Post » Sat Nov 29, 2014 7:40 am

thanks
im planning on using the middle mouse to scroll though a selection of blocks
im new
B
15
S
5
Posts: 22
Reputation: 1,062


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], brunopalermo, David181 and 9 guests