A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: hittest help !!

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    7

    hittest help !!

    Hello. Im creating a simple game using flash 5 and is having problem with a scriptnClipEvent (load) {
    power = 15;
    gravity = 0;
    }
    onClipEvent (enterFrame) {
    if (release, Key.isDown(Key.LEFT)) {
    _x -= power;
    }
    if (Key.isDown(Key.RIGHT)) {
    _x += power;
    stop;
    }
    if (Key.isDown(Key.UP)) {
    _y--;
    }
    if (Key.isDown(Key.DOWN)) {
    _y++;
    }
    if (_root.circle.hitTest(this)) {
    _root.gotoAndPlay(21);
    this is in a chararcter in the second scene.it work fine when i test it ,but when i publish to projector or html form it goe back to scene 1 frame 21. any solutions

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    This is the actionscript 3 forum. Flash 5 definitely doesn't support as3, so I'm guessing you just missed your exit. U-turn and go north about one forum.

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