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.

2D All the way! / Can someone explain how collison sprite works

Author
Message
Ads
20
Years of Service
User Offline
Joined: 13th Sep 2003
Location:
Posted: 20th Sep 2003 23:35
how does if sprite collision(11,2)=2 then gosub what?. What do the numbers mean?
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 20th Sep 2003 23:49 Edited at: 20th Sep 2003 23:51
1st...
Can you PLEASE only use 1 thread to post your questions? You have three going right now, and they were ALL made on the same day.

Ok... here we go
sprite collision(SPRITE NUMBER, TARGET SPRITE)= either 1 or 0
sprite collision is a command that will return a 1 if the target sprite is over lapping (and a 0 when it is not). SPRITE NUMBER is the sprite that you want to check for collisions. TARGET SPRITE is the sprite that will return a 1 when over lapping with SPRITE NUMBER, if this value is set to 0 then all sprites will act as target sprite.

"sprite collision(11,2)=2 "

the 11 would mean "sprite 11", the first 2 would mean "target 2" and the last 2 would not work ( it has to be 1 or 0, true or false)

a correct example would be

"sprite collision(11,2)=1"

Those who Fight with swords get killed by those who don't
Ads
20
Years of Service
User Offline
Joined: 13th Sep 2003
Location:
Posted: 21st Sep 2003 01:11
I apologize for posting like I have and I will not do it again.
Thanks

Login to post a reply

Server time is: 2024-05-05 20:15:51
Your offset time is: 2024-05-05 20:15:51