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 Discussion / sprite collision help

Author
Message
ShadowCentaur 2
21
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Free Country USA
Posted: 30th Jul 2005 07:15
i'm making a little space-shooter-esque game using no media (so its just symbols and letters flying around). i'm trying to get the collision to work and it's irregular. sometimes it works and sometimes it doesen't, even during the same test run. can anyone help me? ive tried sprite hit and sprite collision and both have same bug. sorry if snippet isa bit big, i dont know what part of it is the problem. any help?

Truth suffers from too much analysis.
-Ancient Fremen Saying
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 30th Jul 2005 12:18
Whats happening is that your bullets are going to fast to always hit the enemy. You can either slow down the bullets or make them bigger.

Here is an example of slowing them down


The happenings of tommorow are behind us now
ShadowCentaur 2
21
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Free Country USA
Posted: 31st Jul 2005 07:06
oh, ok, i'll try that. thanks

Truth suffers from too much analysis.
-Ancient Fremen Saying
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 1st Aug 2005 08:40
Yeah. It my Slayer: Battle Tanks game, I found that if the bullet jumps too far in one move, it jumps past the tank without even touching it, in which case, you increase you sync rate and decrease your jump rate.

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
ShadowCentaur 2
21
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Free Country USA
Posted: 1st Aug 2005 09:31
thanks. i made my stuff bigger, the sync rate higher, and the jumps lower and now it works perfect. i did find an odd bug with the majenta powerups not colliding withthe green ship. see the topic i made about this odd bug. im making this game with no media so i'm really concentrating on making everything work right. next thing to add: enemy ships that shoot at you... coming soon
[href]http://forum.thegamecreators.com/?m=forum_view&t=58190&b=10

Truth suffers from too much analysis.
-Ancient Fremen Saying

Login to post a reply

Server time is: 2026-07-09 01:30:46
Your offset time is: 2026-07-09 01:30:46