Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble with sprite location between 2 points

Status
Not open for further replies.

luckyy

Technical User
Sep 29, 2001
40
AU
I want to change a sprites member, if a second sprites location on the stage is between two points eg: between 4000 and 5000. I can do it for one specific location, but need it to work between two locations as its for a scrollable timeline which displays info at different points on mouseEnter.

can you do something like below, but .right between 4000 and 5000?

thanks

on mouseEnter
if sprite(1).right >= 5000

then sprite(7).member = member("red")
end if
 
on mouseEnter
if sprite(1).right >= 4000 and sprite(1).right <= 5000 then
sprite(7).member = member(&quot;red&quot;)
end if
 
That worked a treat Horrid,, thanks mate...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top