Picking the entity

Blitz3D Forums/Blitz3D Beginners Area/Picking the entity

mintybreath(Posted 2007) [#1]
I need a little help with some programming that i know how to do in 3D, but dont know in 2D.

I am making a small pong game, i guess because i am bored and want to play pong, and i ran into a problem.
I am doing the main menu, and i was going to have a start button, and simply use the Entitypickmode command to simply click on the entity and make it do something. When i run the program, i figure out entitypickmode is only a 3d command set.

I am not that familiar with the 2D commands yet (in fact im not that familiar with blitz at all :] ). Is there any 2D substitute for Entitypickmode? I would think there would be.

Thanks for your help everyone. :)

Kevin


Sledge(Posted 2007) [#2]
ImagesOverlap()


mintybreath(Posted 2007) [#3]
Does that work with the mouse though? When i tried it did not, maybe i did not do it right though.


b32(Posted 2007) [#4]
You could use RectsOverlap, ImagesCollide, ImageRectCollide or ImagesRectOverlap with a rectangle/image sized 1x1 at MouseX(), MouseY()


Sledge(Posted 2007) [#5]
ImageRectCollide or ImagesRectOverlap

Oooh -- hadn't seen those! Definitely better than loading a hotspot image for the mouse I think. Anyway usage might be something like-a-this:




mintybreath(Posted 2007) [#6]
Ok thanks. Ill try some of those out.