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 / object hit()

Author
Message
Anthony2
20
Years of Service
User Offline
Joined: 19th Jun 2006
Location:
Posted: 25th Jun 2006 22:56
I am using the command "object hit()". The help file says "This command will return a 1 if the two specified objects hit each other. If the second object is set to zero [...]" (it isn't). Ergo, it should make no difference which object is stated first, but it does, as my short program demonstrates. I don't understand why this is. (note: the program, for some reason, only allows the impacts of object 1 to have an effect, *but this is seperate from the issue about object hit () that I describe*. I have checked thouroughly that the problem connot be due to an error on my part.)

You need only *transpose* the parameters to change the effect.THere are a couple of mistakes in the program but these don't affect the inexplicable effect of transposing the said parameters

object hit(a,b) to object hit(b,a)

Thanks

Login to post a reply

Server time is: 2026-07-06 20:31:03
Your offset time is: 2026-07-06 20:31:03