How do I make a sprite move off the screen on mouse click

Just started using Construct 2? Post your questions here

Post » Tue Jul 14, 2015 3:31 pm

Hi everyone another noob here :)
Making a non scrolling game and need a sprite to move off the screen to the left whenever i click on it.
Making a deal or no deal game and i need the sprites to move off the screen whenever they are clicked. Could anyone tell me how to do it?
Thanks :)
B
4
S
1
Posts: 12
Reputation: 374

Post » Tue Jul 14, 2015 3:36 pm

Many, many, many ways to do this..

Easiest is probably giving the sprite bullet behaviour, disabling it at the start in the properties..

on sprite clicked
> sprite enable bullet behaviour
> sprite set bulletspeed : 100
> sprite set bullet angle of movement -180

If you don't want the sprite to rotate turn that of in the bullet behaviour properties as well..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jul 14, 2015 3:51 pm

Ok thanks I tried that but Im obviously doing something wrong :| Any ideas?
Thanks

*nevermind i got it :D thanks man :D*
B
4
S
1
Posts: 12
Reputation: 374


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest