Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sprite Intersection

Status
Not open for further replies.

mjmnyr96

Programmer
Apr 25, 2006
7
US
Have to make a game sort of similar to I guess its called "Break Out". Where you have to keep the ball from falling off the bottom of the screen while breaking all the blocks on the screen. I have the ball working but basically I cant get it to intersect with the blocks. I figure I'll need a block behavior:

Sprite(1) is the ball

If sprite(1).intersect(me.spritenum) = true then

However the ball doesnt intersect the blocks.

I'm thinking of going with a block behavior that way I dont have to have like 50 IF statements in the ball behavior.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top