realbasic-nug
[Top] [All Lists]

Shooting in right direction

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Shooting in right direction
From: Maarten <maarten dot de dot zoveelste at gmail dot com>
Date: Wed, 30 Nov 2005 10:06:02 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=bZRygz+Qvcqc19qNEbswr+92rH4hkptXgjdbe0uz6lznaSyzT5N3tnyzvIHaVlZL8PButuIzxMogJ1DTtMMbqtnyppadVA/KsenXh8jvB107T8oEOaFHcn3W1hYmz1jLxjP8yDmN7j9QqneZq86JKbOpk5oPV4lb9BoayA4EHVU=
I made a game with the spritesurface control, right now it's just a guy
walking in a level with a gun. guy is a costum class with the propety
sprite. Anyway, if you press the spacebar the guy shoots. bullet is also a
costum class with propety sprite. The pictures of the guy are rendered with
a 3d program. How can i make the bullet go the way the gun is pointing? I
could make an entire library with wich way to go with what image but there
are about 50 images. Atm the bullet just goes in a straight line left or
right but when you jump the guy rolls in the air so the gun isn't pointed
right or left. Is there an easy way to determine how the gun is pointed? If
not i'll just make a function that returns what way to go...

Maarten
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>