|
-
May 19th, 2002, 04:09 PM
#1
Thread Starter
Lively Member
[resolved] Need help, take a look...
Hi,
I need help with this. I am making a fishing game where you cast your line and the line sinks down towards the bottom and i want it so if the bottom of the line (y2) hits the correct spot on the fish then it catches it. Since the fish picture box isnt shaped exactly to the fish (fish being not rectangular of course) Ive decided to make the collision event happen to a shape that is underneath the fishes picture. It will be a small oval and will be behind the fishes mouth. so, I want it so when the line hits any part of the roof of the shape for something to happen. This code almost works how I want it to but not quite.
If Line1.Y2 => Shape1.Top And Line1.X2 => Shape1.Left Then fish4.Visible = False
So what this does is even if the middle part of the fishing line hits the shape (not the hook end) it will still simulate catching it. Of course all i want it to do is for when the very end of the line hits the top of the shape (any part of the top of it) then it catches it. I need a code that will only act upon the bottom of the line hitting the top of the shape. Thanks for any help. (Im a novice so not too technical =P)
Last edited by Inno; May 19th, 2002 at 04:20 PM.
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
|