How do I make a sprite appear on a mouse click?

Just started using Construct 2? Post your questions here

Post » Sat Jul 11, 2015 3:38 am

I'm new to construct 2 and I'm barely learning the basics. I'm trying to make a sprite appear in the exact spot that I click on the screen. Is there a way to make the sprite appear or would it be easier to make the sprite move from one spot to wherever I click next?
B
3
Posts: 2
Reputation: 179

Post » Sat Jul 11, 2015 6:39 am

First make sure you have added your mouse object.
Go Event sheet Do this: "Add Event" - "Mouse" - "On any click."
Now, "Add action" - "System" - "Create object" -
choose sprite
x = mouse.x
y = mouse.y
B
6
S
1
Posts: 29
Reputation: 465

Post » Sun Jul 12, 2015 6:31 am

That seems so much simpler now. Thanks!
B
3
Posts: 2
Reputation: 179


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests