|
-
Jan 24th, 2000, 04:06 AM
#5
Thread Starter
Hyperactive Member
Hi!
I was thinking about it for a while, and I firgured out what the problem is. The bullet always moves in intervals of 100 units (twips, or whatever is used to measure it). But if I move the vehicle, it moves in intervals of 50. Therfore, if I only move up once, the bullet will never have the same value for the TOP property. So to fix that, instead of using:
Code:
if bullet.top = lblenemy.top then
'do whatever
end if
Code:
I used:
if bullet.top < lblenemy.top then
'do whatever
end if
I also changed the value of CrashTrue to false, so that the loop is not activated whenever the bullet is above lblEnemy.
I don't expect anyone to understand any of this, but, I fixed the problem. Thanks if anyone was trying to figure it out.
------------------
Regards,
Alexander McAndrew
VB Zone
http://vbzone.cjb.net
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
|