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 / Bullet Mechanics With BASIC2D

Author
Message
ArcherSam
15
Years of Service
User Offline
Joined: 13th Mar 2011
Location: Florida, US
Posted: 25th Apr 2011 01:49
I have attempted to use BASIC2D to create bullets and check the bullet collision many times without success. Any help would be appreciated. I have extracted and modified the necessary source code from my program to use for solving this problem.

Goals of the bullet mechanics is:

Goal 1: To be independent from the character
Reason: Bullet cannot have random behavior because of being dependent on character's position. Bullet collision will be checked independently from the character.

Goal 2: The bullet should be a variable
Reason: Bullet collision will be checked independently from the character

Goal 3: Amount of bullets dissipated from the character is limited to 15 in a given time
Reason: To control the amount of bullets in the environment.

Also note that I call the bullet a 'mechanism part'.

Sam

ArcherSam
15
Years of Service
User Offline
Joined: 13th Mar 2011
Location: Florida, US
Posted: 25th Apr 2011 18:11 Edited at: 25th Apr 2011 18:12
I have successfully achieved creating BASIC2D bullet mechanics. Thanks to anyone who look at the code and attempt help solve this issue (no sarcasm intended). If anyone finds any method to optimize the code please post.

Solution for bullet mechanics:



Goals of bullet mechanics were changed:
Goal 1: To be independent from the character (mPart())
Goal 2: The bullet should be a variable (mPart())
Goal 3: Bullets shoot over a time interval (pLock)

Login to post a reply

Server time is: 2026-07-11 12:20:41
Your offset time is: 2026-07-11 12:20:41