Author Topic: Actionscript Question (Urgent)  (Read 603 times)

0 Members and 1 Guest are viewing this topic.

Offline Fineus

  • ...But you *have* heard of me.
  • Administrator
  • 212
    • Hard Light Productions
Actionscript Question (Urgent)
Hello again all,

Got a quick question for someone who knows Actionscript better than I do.

I want a movie object to move randomly around the screen, but to keep that movement within 200px width/height of the middle of the screen (I'm building a "Crystal Maze" game and need to keep the tickets within the center of the Crystal Dome graphic. I've got the random movement but I can't move it to the center of the screen.

Can anyone help?

 

Offline Fineus

  • ...But you *have* heard of me.
  • Administrator
  • 212
    • Hard Light Productions
Re: Actionscript Question (Urgent)
Scratch that - new question (and I realise given nobody replied that I may not get an answer here).

I'm looking for a way to remove a movieclip/duplicate movie clip by clicking on it. Using this method doesn't work:

Code: [Select]
on (release) {
_root.score = _root.score+5;
mClip.removeMovieClip("ticket");
}

Any ideas?

  

Offline Fineus

  • ...But you *have* heard of me.
  • Administrator
  • 212
    • Hard Light Productions
Re: Actionscript Question (Urgent)
Forget it. I solved it myself. Wii!