Fitchett Developments last won the day on
Fitchett Developments had the most liked content!

Fitchett Developments
Members-
Content Count
22 -
Joined
-
Last visited
-
Days Won
1
Fitchett Developments last won the day on
Fitchett Developments had the most liked content!
Community Reputation
2 NewbieAbout Fitchett Developments
-
Rank
Member
-
Hey everyone so I am moving a Movie Clip across the stage using Animate CC/AS3 and I was wondering which way is faster or if it even matters? The initial method I would use was straight forward using an ENTER_FRAME Event Listener like so addEventListener(Event.ENTER_FRAME, platformLoop); private function platformLoop(e:Event):void { this.x -= 8.0; } the Second Method which i am currently using now is like so: private function init():void { TweenLite.delayedCall(0.001, moveChar); } private function moveChar():void { TweenLite.delayedCall(
-
Great explanation. I completely understand. That question had be going all night because ive been working on my game for awhile now and I had so many timer events going on at the same time around 8 or 10 Timers I read a lot and understand that Timers cause lag and can decrease performance on Mobile devices etc.. So I removed them all and instead added TweenLite.delayedCall to all my used to be timer functions and have them loop I hope I did that correct. It seems to be working properly just like a timer. I hope I read enough to understand that by removing all the timers and using Tweenlite del
-
Awesome thanks so much Carl Ill give it try today and let you know how it turned out. I hope this is not going against the forum rules but maybe you can help me answer this quick question. I was wondering if replacing ENTER_FRAME events in my Movie Clip objects main class to TweenLite would increase performance? RIght now in the Movie Clip Object classes I have the ENTER_FRAME event moving the Objects across the screen in a linear line with "this.x += 10" etc... Would it increase performance to just remove that and instead replace it with the Tweenlite? I ask because I am publishing the game t
-
Hey everyone so I know that tweenMax has a onComplete function but I was wondering is there anyway that I can setup a tweenMax or tweenLite function to only run 30 intervals of my stages frames per second then once finished call on the onComplete function? I have a movie clip object that is added to the stage every 0.8 seconds and what i wanted to do was when my character picks up a powerup I wanted to have the movie clip object added to the stage every 0.1 seconds but only for a couple intervals or like say 5 seconds then I wanted to put it back to its original time. Is there anything
-
Hey everyone so maybe you can help I have created a game using Flash CS6 and Flash Develop. I have objects that are added to the stage by a timer Event named "_Obstacles". These _Obstacles are all added Randomly to the stage. Now they get pushed onto the stage like so: private function addObstacle(e:TimerEvent):void { _Obstacles = new mcObstacles(); stage.addChild(_Obstacles); aObstacleArray.push(_Obstacles); trace(aObstacleArray.length); //TweenLite.to(_Obstacles, 2.7, {x: - 300}); } In my _obstacle class
-
Hey everyone so In my Movie Clip class I have the Object move to the Right side of the stage using TweenLite and after the tween is finished I want the function "OnComplete" to remove the object but its not doing anything and the object is still on stage. Here is how I am using it: TweenLite.to(this, 3.0, { x: 900, y: 300, onComplete:removeTween } ); Then the Function: private function removeTween():void { if (this.parent) { parent.removeChild(this); } } Does anyone know why its not removing the
-
hitTestObject not working when Tween added
Fitchett Developments replied to Fitchett Developments's topic in GSAP (Flash)
Amazing. GreenSock is just amazing haha. Thanks so much it worked perfect! You were a great help! -
hitTestObject not working when Tween added
Fitchett Developments replied to Fitchett Developments's topic in GSAP (Flash)
Thanks for the information it helped i think it has something to do with the object it runs into, because like i stated above whenever i change its position closer to the mcPlayer the hit test works. But while i have you hear i have another quick question. In one of my Object Classes i wan it to alpha ease in whenever its added to the stage. So i want it to be invisible then ease in after 1 second. I have this: TweenLite.to(this, 1, {autoAlpha:0}); But it eases out. I tried to mess with it but couldnt really get it to work. -
hitTestObject not working when Tween added
Fitchett Developments replied to Fitchett Developments's topic in GSAP (Flash)
This is weird whenever i change one of my objects position to a different value it works. -
Hey guys quick question. Do you know of any reason to why my hitTestObject wont initiate when i add this line to my mcPlayer Class: TweenMax.to(this, 1.5, { x:120, ease:Power0.easeInOut } ); My hitTest function works perfectly fine but once i add this code to it, my player just goes straight through the object this is how my mcPlayer class is setup public class mcPlayer extends MovieClip { public function mcPlayer() { addEventListener(Event.ADDED_TO_STAGE, onAdd); } private function onAdd(e:Event):void
-
Removing Tween and re-adding Tween.
Fitchett Developments replied to Fitchett Developments's topic in GSAP (Flash)
Interesting. Yeah i figured it out last night by setting it to 0 then 1 in the next function. But im confused what does set(); or fromto(); do? -
Hey guys so im having a little trouble here. So i have a textField that updates after each hitTest which is called levelText. So what im trying to accomplish is the levelText field to fade out after 1 second at the start of each new level. It works fine for the first level but when i go to level 2 or 3 the text field doesnt appear at all. I believe i have to destroy it and re add somehow? Here is the code im using. private function startNextLevel():void { TweenLite.to(levelText, 1, {autoAlpha:0}); } Please any information would help. Thank you.
-
Infinite Tween on a Linear Path
Fitchett Developments replied to Fitchett Developments's topic in GSAP (Flash)
Oh okay thanks for the info. Yeah im using v12 and its working pretty good.- 15 replies
-
Infinite Tween on a Linear Path
Fitchett Developments replied to Fitchett Developments's topic in GSAP (Flash)
Yes!! That is exactly what i was looking for. You have been more than helpful. It wasnt working when i had it on TweenLite but it does the trick on TweenMax. Thanks again man. So by using GSAP will this boost overall performance? or Optimization?- 15 replies