A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Eagle university project - generating movieclips help needed asap!

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    2

    Eagle university project - generating movieclips help needed asap!

    Hello!

    Very quickly, I have struggled for a couple of weeks with my friend making this pseudo game for an exhibition I have on Friday. Our smattering of AS and flash knowledge has got us this far:

    http://megaswf.com/view/c2bcd620024e...decf1f756.html

    You can move forward, backward, up, down and if you press space you head into a swoop to attempt to catch the rabbit.

    This is where my problem becomes apparent (I hope) - the hittest rabbit gets removed once hit (obviously) and then... The game's over pretty much! If this game is going to be up for days at a time then I need a rabbit mc to be constantly on the screen. Ie a new one generated every time you 'catch' the rabbit.

    My idea was to integrate some sort of code to make the rabbit mc jump to a different x position every time it was hit but I don't know how to code that and neither does my friend, hence why I'm here!

    Can you wonderful people help? And in time for Friday!!

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    2
    Nevermind I had a techie at uni help me out. We managed to come up with this:
    this._x = Math.round(Math.random()*10)*100;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center