943,993 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 13002
  • VB.NET RSS
Mar 29th, 2005
0

Moving objects on a form

Expand Post »
Hey it's me again. i know u guys might be sick of me asking q's but i really need ur help. i'm trying to make a game now for my brother for his birthday. and i have the boundary code i need thanks to u guys but i decided to tweak teh game a little more and have the objects u are supposed to not hit be moving across the screen, like traffic in Frogger. It kind of needs to be a loop but i can't figure out how to make the objects scroll across the screenin the preset order (ex. if it were shapes, like, circle, rectangle, square, triangle, circle, square, rectangle, triangle, etc.) if anyone can help me it would be greatly appreciated.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Gambit0789 is offline Offline
8 posts
since Mar 2005
Mar 29th, 2005
0

Re: Moving objects on a form

sorry, i made a mistake, the shape example should be in the same order, so circle, rectangle, square triangle, not circle, square, rectangle, triangle,
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Gambit0789 is offline Offline
8 posts
since Mar 2005
Apr 4th, 2005
1

Re: Moving objects on a form

Quote originally posted by Gambit0789 ...
Hey it's me again. i know u guys might be sick of me asking q's but i really need ur help. i'm trying to make a game now for my brother for his birthday. and i have the boundary code i need thanks to u guys but i decided to tweak teh game a little more and have the objects u are supposed to not hit be moving across the screen, like traffic in Frogger. It kind of needs to be a loop but i can't figure out how to make the objects scroll across the screenin the preset order (ex. if it were shapes, like, circle, rectangle, square, triangle, circle, square, rectangle, triangle, etc.) if anyone can help me it would be greatly appreciated.
Put the options into a group box. Do you want your brother to pick more than one option or pick the lot? If it is one option put them as radio buttons.(radSquare, etc.) If you want all the options then it would be a checkbox. (chkSquare, etc.) Hope that helps.
Reputation Points: 11
Solved Threads: 0
Newbie Poster
goaldrush is offline Offline
15 posts
since Apr 2005
Apr 5th, 2005
0

Re: Moving objects on a form

no, i don't think u understand, i need different shapes to scroll across the screen in a set pattern repeatedly, like the traffic in frogger
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Gambit0789 is offline Offline
8 posts
since Mar 2005
Apr 5th, 2005
0

Re: Moving objects on a form

Quote originally posted by goaldrush ...
Put the options into a group box. Do you want your brother to pick more than one option or pick the lot? If it is one option put them as radio buttons.(radSquare, etc.) If you want all the options then it would be a checkbox. (chkSquare, etc.) Hope that helps.
I'm sorry.... did you even read his post?
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Apr 12th, 2005
0

Re: Moving objects on a form

i don't understand. the point of my game is to get ur person across the screen without getting hit the objects scrolling across the screen. if sumone could please give me a little code and wlak me through it it would be greatly appreciated. the only code i have left is to have preset objects scroll across the screen in a loop. i already have the boundary code and everything else. i just need have preset labels scroll across the screen in a loop

HELP WOULD BE GREATLY APPRECIATED!!
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Gambit0789 is offline Offline
8 posts
since Mar 2005
Feb 15th, 2011
0
Re: Moving objects on a form
is there any example of the code for this problem?
can you post it here?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
josephbeluan is offline Offline
12 posts
since Feb 2011
May 4th, 2011
0
Re: Moving objects on a form
Gambit0789, he showed you the method to code the shapes.
To move the object put a timer on the page and =+ 10 object location.

If object location > screen size object location = screen size - object width

Your is how you spell 'ur'. Work on your grammar dude, don't be a retard.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Gopher2011 is offline Offline
2 posts
since May 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Crystal Report Wizard with Search
Next Thread in VB.NET Forum Timeline: Generate bar graph in vb.net values are from database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC