collisions with types

Previous topic - Next topic

Richard Rae

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.

Kitty Hello

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.

Schranz0r

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
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

bigsofty

Sprites fine by me too, never any mix up? :)
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

BumbleBee

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
The day will come...

CPU Intel(R) Core(TM) i5-3570k, 3.4GHz, AMD Radeon 7800 , 8 GB RAM, Windows 10 Home 64Bit

Kitty Hello

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.

Hb!

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)