Sniper application
jack.zainudin@live.com
Member Posts: 25
Hi, I recently purchased a sniper scope, I'm going to use this for and iPhone application and was wondering how I would make it so when the centre of the scope goes over the head of the target and a square box on the screen is pressed it kills the target.
Comments
I have noticed a few questions regarding this sniper game your working on so i presume your pretty new to GameSalad.
As someone has pointed out before we have a sniper template over at DBA that has everything you will need but that aside read below.
You will have other problems like zooming in on the target, moving around with touch, head shots and body shots, it will be too easy to kill the enemies (you will see what i mean when you get further in development), scrolling around a larger scene, HUD when zooming and many more.
I can foresee so many problems for you that will frustrate you and because your new i would recommend making a simple game to start with and put this one on the back burner while you learn.
Download some of our free templates over at DBA and take them apart to get a grip of GS and how it works.
Best of luck but if your expecting people here to guide you through a complete game from start to finish answering all the questions along the way it will take a while and that time is better off spent learning.
Darren.
Signed,
The self proclaimed guru
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I know you're new here but that's not the best way to behave if you expect people to help you out.
Edit: beaten to it by the guru, who perhaps said it better than me by using his silence
Politeness goes a long way. Just my opinion though...
There many ways to achieve what you want.
You could measure the magnitude of the scope against your target.
You could contrain a very small actor in the middle or the scope and when it overlaps with your target enable your "square box" to kill.
If what I wrote dont make any sense, then I can only refer you back to the other thread you made with the advice some @deepblueapps
Then what do I do excactly.
Create 2 new global real attributes called X and Y
then you constrain attributes X,Y to the sniperscopes self.position.X.Y
On your small actor, you contrain self.position.X,Y to the two global attributes X,Y
This will make the "small actor follow the sniperscope assuming you have set up the dragrules for the scope
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
The Guru
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS