Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Collision problem (pong game)

Author
Message
Defconist
19
Years of Service
User Offline
Joined: 17th Nov 2006
Location:
Posted: 17th Nov 2006 16:07
I am trying to make collision between circle and ellipse.Problem is that closest command I know is sprite collision, but I don't have sprites in my program, because I created those 2 shapes using cicle and ellipse command.How can I set collision between them?

This id code what I am using.
Gamedesign er20
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 17th Nov 2006 17:43
Well you could use the getimage command and then make the two shapes into sprites.

little example-


Cocacola and Pepsi aren't that differnt. Deal with it.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Nov 2006 01:20
It is better to make them sprites as Gamedesign suggested. Sprites give you the ability to move them all over the screen without messing up the background.

Login to post a reply

Server time is: 2026-07-05 12:11:40
Your offset time is: 2026-07-05 12:11:40