Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help.........Shoot to the left or right of character

Author
Message
Dante Labon
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location:
Posted: 6th Nov 2003 23:28
Ok, this is an odd question, but does anyboby know how to make a character shoot (lets say a bullet) to the left or right of your character. Straight ahead shooting is no prob with the move command, but the whole 3d world space thing is driving me crazy. The object pivot seems to be a "world" pivot (ie when my character turns, the shooting goes from the left of character to whatever direction I turn). Any help would be GREATLY appeciated.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Nov 2003 00:35
If you wanted a cheap 'n easy (but not very efficient) way of doing it, you could just move the enemy left or right slightly using MOVE OBJECT LEFT / MOVE OBJECT RIGHT, record their new positions and place the enemy back in the original place, then use POINT OBJECT to aim the gun / bullet to the left or right of the enemy.

Login to post a reply

Server time is: 2026-07-26 19:47:59
Your offset time is: 2026-07-26 19:47:59