Help! I need to shoot a bullet in the direction of my cursor
I cannot figure out how to shoot a bullet and make it travel in the direction of my cursor but not follow it. Help plz!
Best Answers
-
Armelline Posts: 5,364
Something like this?
http://forums.gamesalad.com/discussion/comment/515302/#Comment_515302
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
-
Armelline Posts: 5,364
@CerealBoxer said:
2. Sorry to keep asking but is there a way (For my game purposes) to make it so the "Cannon" is always pointing at the cursor and also doesn't take time to spin around? (So far everyone has been helping a lot!)This is actually a lot easier. But bear in mind it won't work on touch devices.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
-
tatiang Posts: 11,949
Is this what you're asking about?
And that would be found here:
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
but how is it accomplished?!
I checked it out and if you click twice without changing position of the cursor, it does not shoot.
Sorry, it was just meant to be a simple demo of the basics, I didn't take the time to make it very complete
@Sock's suggestion should work, but what I intended to do but obviously forgot to was this:
@Sock's method is better though as with mine you have to release a tap before a ball is spawned. So use his unless you specifically want this behaviour.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Thank you so much! It is exactly what I need! I just have a tiny problem...
Under the "Constrain Attribute" there is a rule. Inside it is the attribute-checking-thing.
It says: "Invalid Path" inside of the attribute. I would like to find out what the attribute is supposed to be so I can replicate it. Please help!