How do I Create only one Object from "Is in Touch"condition?

Just started using Construct 2? Post your questions here

Post » Tue Feb 10, 2015 9:26 am

I want the game to only create one object when is in touch or when I'm holding the left key.
When I make a line for the player to bounce off it creates many objects and I only want one. Idk if im clear but I uploaded a pic. Hope anyone can help me. Thanks.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 2
Reputation: 444

Post » Tue Feb 10, 2015 9:46 am

It doesn't work if you just put all that left mouse button down code into the left button clicked?

If not for some reason, you could use a variable and use the general condition compare two general values. Use the variable as the first and check if its 0. If it is and the mouse button is pressed, create the object. In the body of the left mouse button is down, set the variable to 1 so its not 0. Then, when you let up the mouse button, set it to 0. That way it only works again when you let off the mouse.
B
6
Posts: 16
Reputation: 284

Post » Tue Feb 10, 2015 11:49 pm

What i want to do is create a line like fruit ninja but instead of a line i want it to be an object but when i drag to make the line i get many objects instead of one
B
3
Posts: 2
Reputation: 444


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest