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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

static sprite to follow animated sprite

Status
Not open for further replies.

styleBunny

Technical User
Jun 20, 2002
133
AU
Hey folks,

Im trying to discover wether it is possible, to have a static sprite, follow the path of a tweened sprite, from the commencement of a moive.
perhaps a movie script something like

if movie is playing
set loc of sprite 1 to sprite 2
update stage
repeat
else
end if

have been on my mind for ages, ne suggustions would be appreciated.
paul.

 
on enterframe
sprite(2).locV= the locV of sprite(1)-12
sprite(2).locH= the locH of sprite(1)-12
updateStage
end

sprite 2 follows sprite 1 slightly behind. just modify the
two twelves. It is simple but effective and can be expanded upon easily.
 
excellent!

that worked like a charm! It seems so obvious now :) thanks for that! should have realised that a movie script wouldnt need a if statement, thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top