Question: How can I animate the ghosts movements to be random? using these commands : * getDirection, setDirection, * move ( speed ) , * intersects

How can I animate the ghosts movements to be random? using these commands :
* getDirection, setDirection,
* move(speed),
* intersects(Character)
* animate, animateFlip, animateShake
* playBombTicking, playGoldFall, playGoldDrop,
* removeSelf, putBrokenGold
* earthAbove, earthBelow, earthToLeft, earthToRight,
* earthFront, goldFront
* getDirection, setDirection,
* move(speed),
* animate, animateDead,
* intersects(Character), intersectsWithName(String)
* getClara, getGhostHealer,
* isAboveMe(Character), isBelowMe(Character), isToMyLeft(Character), isToMyRight(Character),
* makeClaraDead,
* playGhostEatenSound,
* wrapAroundWorld
* getDirection, setDirection,
* move,
* animate, animateDead,
* onLeaf, removeLeaf,
* onEarth, removeEarth
* onGold, removeGold
* allLeavesEaten, allGoldEaten
* isClaraDead,
* playLeafEatenSound, playCollectGold
* playIntro, isIntroStillPlaying,
* wrapAroundWorld,
* getCurrentLevelNumber, advanceToLevel

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!