Jump to content
Search Community

Koschi

Members
  • Posts

    4
  • Joined

  • Last visited

Koschi's Achievements

0

Reputation

  1. ok forget about it, this thread viewtopic.php?f=1&t=3656 some minutes ago solved exactly my problem ^^
  2. Hi there, i got an little problem with the "onComplete" thing. I want to try the following: TweenMax.fromTo(fire[iD2], duration, {x:player[iD].x, y:player[iD].y}, {x:destinationX, y:destinationY, onComplete:test(fire[iD2]), ease:Linear.easeNone} ); function test(e) {trace("remove");} to move the fire[iD2] mc to the location of the player[iD] mc. This is working like wanted but the onComplete function is called in the moment the tween starts, not in the moment the tween ends. If i use TweenMax.fromTo(fire[iD2], duration, {x:player[iD].x, y:player[iD].y}, {x:destinationX, y:destinationY, onComplete:test, ease:Linear.easeNone} ); function test() {trace("remove");} without the "(fire[iD2])" it works correct and starts the function at the end of the tween. Is this normal and is there an easy way to work around this? What i want to achive in the "test" function is that the "fire[iD2]" mc gets removed. I allready read about using "onComplete:stage.removeChild(fire[iD2])", which also does not work for me.
  3. thats great. Such an fast answer and exactly what i wanted. I will think about an green membership if this works like i think
  4. hi, i was browsing this page/project the whole day and i can just say that it this is amazing. Now 1 question that appears for me is the following. Is it possible to tween an movie clip in an special way. I don't really have an endpoint for it. Just an direction in degrees and the speed it should move. Now i want the movie clip to move from its starting point to the direction in the defined speed for an set amount of time like 5 seconds. Afterwards it should launch an event if it does not hit another movie clip. Don´t worry about the hit test thing, i was just wondering if that moving is possible with your/this engine? thanks for answers. with kind regards
×
×
  • Create New...