GLBasic forum

Main forum => GLBasic - en => Topic started by: Richard Rae on 2007-Aug-19

Title: collisions with types
Post by: Richard Rae on 2007-Aug-19
Hi,having a problem with collisions.If I loop through an array of types using the foreach loop and move some of the items within the loop,how do I check for collisions.I have tried boxcoll and sprcoll with no sucess.I only have 5 sprites,but there could be any number of them on screen.How do I check for collisions between instances of types with the same sprite number.
Title: collisions with types
Post by: Kitty Hello on 2007-Aug-20
Again! Please not again!
You load an image with LOADSPRITE - that's just the image information.
Then you "draw" it with SPRITE. There's no sprite put anywhere and there's no information stored about this place - it's just the image.
So - did you get this wrong, please be honest. The Sprite command should have been "BLIT" or "BOB" or "IMAGE" instead of "SPRITE". I know, I feel sorry, and if you got it wrong, I'll change it for good with a new update.
It so so confused a lot of people.
Title: collisions with types
Post by: Schranz0r on 2007-Aug-21
Sorry, but dont change the Spritecommand...

Thats very Simpel, and everyone who read the tutorials can be use it.

Why image?

IMAGE <-> SPRITE ....  thats the same for me :D
Title: collisions with types
Post by: bigsofty on 2007-Aug-22
Sprites fine by me too, never any mix up? :)
Title: collisions with types
Post by: BumbleBee on 2007-Aug-22
Quote from: GernotFrischIt so so confused a lot of people.
Hard to believe.:D And what about X_SPRITE?
If you are going to change the SPRITE command, then you also have to change X_SPRITE to X_BILLBOARD.:D
So, i don't have any problems with Sprites.

Cheers
Title: collisions with types
Post by: Kitty Hello on 2007-Aug-22
Hmmm... OK. It's just usually people think, that Sprite is used to place objects, that are overlayed with the graphics in the end, and stay where they are until you move them.
Title: collisions with types
Post by: Hb! on 2007-Sep-16
LOL i cant believe that there is a lot of people that dont understand the "sprite" comand even i understood it and im a noob, it took me a while tought......... ( i cannot remember how to write that word ~~ i suck)