A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: **The most hard script ever** (Reply pls)

  1. #1
    Ok everyone, please look at this and read the description below...

    [swf width="650" height="400" background="#000000"]http://www.newgrounds.com/portal/uploads/12000/12553_Introduction_temp_.swf[/swf]

    Now, i got him to move around just fine... however i made all the hitboxes shown instead of invisible...

    NOW...
    Orange boxes = stop him from walking over it
    Green boxes = advance map
    Red boxes = enter that house/building

    ok how do i stop him from walking over the orange ones???
    i want the grey box over crono (the man) called "hitbox" to not be able to overlap the orange box called "wall"...

    i tried this...

    Code:
    onClipEvent (enterFrame) {
        if (hittest(this._root.wall)) {
            movespeed = "0";
        }
    }
    that was placed on the character, and all it did was stop him (which i wanted)... however he could not move away... he was completely stuck and could no longer go in any direction.

    can anyone PLEASE tell me what i can or need to do... im completely lost on what to put in and do, nothing seems to work at the moment. if you can help in the littest way id be very thankful.

    -Xclint

  2. #2
    I don't exist! etsui's Avatar
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    165
    sorry, my actionscript isn't very good

    however, i really like the interface u've designed~~ the people are cute too~~ where did u find those? :P lol

    well, wish u best of luck!

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