123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|683|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> You Never Learned..

Tue, 19 Jan 2021, 02:28
Jayenkai

You Never Learned..


What thing have you never learned, but probably should have?

For me.. Pixel-based collisions. I've avoided those for YEARS, and have used bounding-box or similar for hundreds of games, including some which really could've done with better.

-=-=-
''Load, Next List!''
Tue, 19 Jan 2021, 02:35
Pakz
I learned about pixel based collision back when I was learning to use visual basic. I discovered the bitblit function and it's masks which were used back than for drawing transparent pixels. These masks were I think white at the parts of pixels that were not to be drawn.
There was a explanation on pixel based collision which showed you checked two sprite arrays against each other with a loop. When two none masked pixels in this loop were at the same location than a collision happens.

I think for myself a lot of problems I have would be solved if I learned to debug in a proffesional manner. Make notes, make more testbeds for things I do not really understand.
Tue, 19 Jan 2021, 02:37
spinal
Coding in general. I can google reasonably well sometimes though.

-=-=-
Check out my excellent homepage!
Tue, 19 Jan 2021, 03:40
Jayenkai
@ Pakz. Yeah, the simple stuff's easy enough.
But then you add rotation and scaling, and everything goes out the window!
At some point, it's quicker to just box-collide!

-=-=-
''Load, Next List!''
Tue, 19 Jan 2021, 05:40
Pakz
Yeah, I had not thought of rotation and scaling Functions for rotating and scaling a array I have not seen anywhere yet.

There is a cheap book I bought on 2d collision but I did not seen anything like that in there. It just said you combine multiple collision types ontop of your sprites so they look like they are pixel perfect.