Change the position of a MoveModifier at runtime

  ... tutorials on how to use AndEngine.

Change the position of a MoveModifier at runtime

Postby sunclaude » Mon Mar 05, 2012 2:01 pm

I wanna to change the position parameters of a MoveModifier which is part of a SequenceModifier. Wanna do this at runtime before the SequenceModifier is started for example when I tap on the screen. Is this possible in a different way than recreate every time a new SequenceModifier with a new MoveModifier ?
Thanks
Claudio
sunclaude
 
Posts: 8
Joined: Sun Jan 08, 2012 1:51 am

Re: Change the position of a MoveModifier at runtime

Postby casla » Tue Mar 06, 2012 10:18 am

I am having similar problem as well, at the moment, I am having to clear the existing modifier (Entity.clearEntityModifiers()) and then create, register a new modifier everytime the player has a new destination.

Interested to know if there is a better way.
casla
 
Posts: 6
Joined: Fri Oct 15, 2010 11:35 am


Return to Tutorials

Who is online

Users browsing this forum: psbot [Picsearch], ttttkk and 46 guests