Tag Info

New answers tagged

0

As you are using ActionScript you will be most comfortable using JSON. In ECMAscript dialects it's easy to serialise objects to JSON and get objects from JSON.


1

Here's what I normally do with my states. It might not be the best way, or even the second best (but remember, the thing that matters is not the architecture of your game code, but the actual end result.). I start with a basic State-class (all code in Pseudo-C++): class State { virtual void Event(Event e); virtual void Update(float deltaTime); ...


0

I don't think so until now our developers still now facing with VERY LOW performance of HAXE compare to (native on android , iOS, flash) .


1

I figured it out. I used the DisplayObjects function swapChildren() and it did the job!


2

Put the horse animation on play and remove the horseTwo.gotoAndPlay(next); line from the event listener. The problem is the horseTwo.gotoAndPlay(next); line. With that you are always returning to the beginning of the current label, end the animation never goes forward. The animation plays automatically when it is on play. So you dont need the var ...


0

Currently your script plays the animation and immediately checks if the currently label is "endwalk" only once. What you need to do is use an onEnterFrame event and check what frame the animation is on. That would fix your current issue. You could also put simple actions on the frames themselves without having to use events.



Top 50 recent answers are included