[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

How to make a change when a shape touches an image or a line?

I would like to either enable a timer or increase an accumulator when a shape runs into an image or a line.  Does anyone have any ideas how I can do this?  If you need a better understanding of what I am asking, please let me know.
0
szap
Asked:
szap
1 Solution
 
Shaka913Commented:
Are you using the shape object in VB, or is this some geometry that you have defined (like a sprite) and it is in motion around the screen?
0
 
szapAuthor Commented:
I am using the shape object in VB and I am increasing/decreasing the top and left in order to make it move around on the screen.  If it would be easier to make it like a sprite, could you tell me how to do that or give me a site that will show me how to do that?
0
 
Shaka913Commented:
Well, I could take you through creating a sprite as an object, creating a set of events and methods to define it and then show how to check on move and such for collisions, but I think that would be a waste of your time.  The beauty of VB is that you can use other's code to get the work done. I recommend for what you are trying to do to check out: http://www.appforge.com/dev/game/game.html they have great sprite routines and I think they will do what you need.

Good Luck
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Shaka913Commented:
I just realized that i referenced a mobile solution (for use with PocketPC and Phones and such) but it should still work with regular vb. if that doesn't let me also recommend some more complex stuff like these links:
http://www.synchrondata.com/pheaven2/www/area20.htm these are very complex routines but will definately do what you are looking for (i hope)

good Luck
0
 
Shaka913Commented:
any luck?
0
 
CleanupPingCommented:
szap:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
GPrentice00Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->Accept Shaka913's comment as Answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0
 
GPrentice00Commented:
more than enough pointers in the right directions...
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now