Path: chuka.playstation.co.uk!news From: "Tones" Newsgroups: scee.yaroze.beginners Subject: Wheeee!!! Throwing actions ! Date: Mon, 5 Oct 1998 22:31:38 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 33 Message-ID: <6vbdji$rda1@chuka.playstation.co.uk> NNTP-Posting-Host: asn21-132.mcmail.com X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Hello all, Once again I speak after having a little trouble with yet another trivial problem. This time it is programming a particular fuction. Throwing an object! (I'm sure all you guys must think I am totally incompetant, having posted a number of requests for help b4 ('bout 3 I think?)!) Basically, when I press X I want to be able to throw an object, which then becomes totally independent in it's flight path. I have used a fuction to tell the program that the object has now been thrown (I use a simple array to do this), but what method would I use to calculate it's trajectory from Player1.x and Player1.y if I want it to go up a little in the direction the player is facing, then obviously fall back to the ground according to Mr Isaac Newton's law of gravity ? I.e. an arc of some kind. I have tried a number of things, such as calulating the x and y positions, sticking these in a structured array, then access each successive co-ordinate on each pass of the fuction. However, this take's up a bit of time (in programming terms, not actually on the screen - as I use a for loop). I have also thought of using a Sine wave table, but this is a little beyond my capabilities. In quick terms, I need pointing (HaHa! Oops, no pun intended :( ) in the right direction. Otherwise, you may be pleased to learn my game is coming on quite nicely - Apples & Pears!!!! Many thanks in advance, Tones : )