I need a code for when a Image reaches another image another page will load
Professional Software Development Tools
I need a code for when a Image reaches another image another page will load
Il try to help you but i need more info ,
what do you mean about when image reaches another image?
please post code you have tried
Just when one image reaches a certain x and y corrdinate.
You could approach this by using the On Timer event for any given Page. Then do an "if..then...(do something, when desired X and Y coordinates are reeached)...end" check, for example.
Look into Page.StartTimer() as well.
Intrigued
I dont understand how an on timer event could help me I need the page to jump when a image reaches a point on the page.
Well what i think Intrigued was reffering to, was that if you want the page 2 to load whenever your image on page 1 would be on your desired X and Y pos that you might want it to do soo on a Timer event, but since we dont know, we cant really know when you want it to do soo? lol
well here is an example ive put together anyway
if put on a button as an example , lets say you move your image to X and Y pos to 0 and 0 for the pos result, then if you push a button with this script on it, then this script jump to page 2 if image is not at X and Y = 0 and 0 , then script will do somethings else for you or delete the else and just use end, if you desire to!
![]()
Code:tblImagePos = Image.GetPos("Image1"); X = tblImagePos.X Y = tblImagePos.Y -- Set Desired Pos here if X == 0 and Y == 0 then -- if true then jump to page 2 = next page Page.Jump("Page2"); else -- else do something else here end
Further explanation:
One can monitor (via On Timer) the position of X and Y of both images. And when they are on the same X and Y then you Page.Jump() Action can be fired off. Taking if further, you can then do some basic math on the objects (easy if the images are the same sizes, never changing else a little more coding) and can adjust for images that "bump" into each other from any side of said image (top, bottom, left, right sides).
Intrigued
Nice Wonderboy it Worked thanks Guys for all the help with this project!