Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » Game Programming » animation help needed


animation help neededExpand / Collapse
Author
Message
Posted 4/13/2010 2:47:33 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/5/2010 12:11:58 PM
Posts: 3, Visits: 5
hi     ive got a  problem  in this program everything animates fine until i change   (antnum to 11)

the animation stops could some one tell me why?

im attaching zip file

thanks

  Post Attachments 
ants.zip (414 views, 191.31 KB)

Post #29152
Posted 4/13/2010 4:32:24 PM


Forum God

Forum God

Group: Moderators
Last Login: 2/5/2012 6:29:46 PM
Posts: 1,889, Visits: 5,254
Welcome to A1vbcode flyhigh427

flyhigh427 (4/13/2010)
hi     ive got a  problem  in this program everything animates fine until i change   (antnum to 11)

the animation stops could some one tell me why?

Well you have a Const antNum = 11 and it work ok with 11. If you change that to 12 you get a control array error because there aren't are only 12 ants 0 to 11. 

Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #29153
Posted 4/13/2010 5:51:40 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/5/2010 12:11:58 PM
Posts: 3, Visits: 5
if u change antnum to 10 there legs animate  on 11 they all stop working
Post #29154
Posted 4/14/2010 12:31:15 PM


Forum God

Forum God

Group: Moderators
Last Login: 2/5/2012 6:29:46 PM
Posts: 1,889, Visits: 5,254
flyhigh427 (4/13/2010)
if u change antnum to 10 there legs animate  on 11 they all stop working

Yes that is strange.

Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #29161
Posted 4/14/2010 3:17:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/5/2010 12:11:58 PM
Posts: 3, Visits: 5
well i got 18 or 19 to work 20 wont thanks anyway
Post #29162
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:43pm