Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Page 2 of 21 FirstFirst 123412 ... LastLast
Results 16 to 30 of 306

Thread: The basics of an RPG (role-playing game)

  1. #16
    no that isnt what i wanted. when the arrow keys are down the character will start moving his arms and legs like he is walking. wjen you let up on the arrow keys i want him to stop swinging his arms nd legs

  2. theres a diffrent thread on this
    Skype Me?
    hitTest on my system does 4250 hitTests in 1/12 of a second.

  3. #18
    which one

  4. #19
    I am trying to get it but i am fairly new to AS.

    onClipEvent (keyUp) {
    _root.this.gotoAndStop(1);
    }

    What is wrong with this code

  5. #20
    Well firtly you don't need the root, that makes it look for an MC named this
    onClipEvent (keyUp) {
    this.gotoAndStop(1);
    }

  6. #21
    how do you make it

  7. #22
    what do you want

  8. #23
    195
    posts
    Maps, flash, FPS games...
    Actually it's on keyup. If you did it on key down it'd play the animation while the character is moving. But, yeah it points in the right direction. On key up (left/right/up/down) you gotoAndStop(theFrameYouNeed).

  9. #24
    hey lucas92 change you're footer dude, maximum size allowed is 300x60 !!!

    Imagine - your footer on a 800x600 screen takes more than half of the screen !

  10. #25
    Can anyone show me how to use the items

  11. #26
    Can someone PLEASE finish this and make it work...like christ...when you try to step on a hotspot to go inside a building, nothin happens and those stop moving codes dont work....like omg

  12. #27
    Liek OMG try do it yourself I was only givin you a basis to work off of

  13. #28
    "Give someone an inch, and they'll beat the other mile out of you with it."

  14. #29

    walking through walls still

    Hi

    hey i tryed that anti walking through walls thing on my guy, but it didn't work. Do u know what i may have done wrong???
    and i jave my own map, do i have to do extra script for each building.

  15. #30
    Oh god, this is full of people who really do not know what they are doing.

    Anyway... just use an "else" after whatever function you use for movement... eg,
    if(Key.isDown(*whatever key*<LEFT>)){
    //movement stuffs
    } else {
    char.gotoAndStop(1);
    }

    Simple stuff.

Page 2 of 21 FirstFirst 123412 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012