|
-
Dec 7th, 2000, 11:11 AM
#1
Thread Starter
New Member
-
Dec 7th, 2000, 01:02 PM
#2
Member
Try this
code:
If pic1.Left + pic1.Width > pic2.Left And pic1.Top + pic1.Height > pic2.Top Then
If pic1.Left < pic2.Left + pic2.Width And pic1.Top < pic2.Top + pic2.Height Then
'here goes the action for the collision
-
Dec 7th, 2000, 01:42 PM
#3
PowerPoster
*hehe*recognizs his code*
erm well, if you want to make a maze you probably want to use a map to store where you can walk. That makes collision unneccessary since you can just check if the maps there 0 (empty) or higher (number of picture there).
Hope this helps
-
Dec 8th, 2000, 11:28 PM
#4
Thread Starter
New Member
ok....
Like I said i'm a newbie... I will check this but I don't know if I will be able to do this...
Will check this in the weekend and give you news!
Tanx
 DarKsLiMe Was Here 
-
Apr 23rd, 2001, 01:29 PM
#5
Thread Starter
New Member
What code for colision
Can you give me an example of the code for a colision and where can I paste the code.
And can you change de pic1 and pic2 for
picMan
picRock
Cause i'm not sure where to paste it
Thank you!
 DarKsLiMe Was Here 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|