AS 2 [RESOLVED] [HELP] Litle help with RPG game
A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: [RESOLVED] [HELP] Litle help with RPG game

  1. #1
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    71

    resolved [RESOLVED] [HELP] Litle help with RPG game

    Hello guys, I need a help with a RPG game that I am making. I have two problems, the first is when I click in button to open inventory/shop, the player move and the effect is added in the ground, this can not happen. The second is when I open the inventory or shop, and click in X button to close, nothing happens. Any help to fix? O.O
    Attached Files Attached Files

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,684
    Hi,

    having it set up the way you do with the vcam clip and buttons on different frames makes it slightly more awkward, but try this

    had to do text file as problems posting code, again.
    Attached Files Attached Files

  3. #3
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    71
    Hello fruit my bro, as always worked, nice code, thank you..

    Do not want to abuse, but it's possible to when the game is unpaused, the player continue moving to the clicked point before the pause?

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,684
    Hi,

    Yes it's possible, but the last click when pausing is when you click the pause button, so the psoition he moves to is under the menu button.

  5. #5
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,684
    with this code, simply comment out

    else {
    getx = player_mc._x;
    gety = player_mc._y;
    }

    like so

    else {
    //getx = player_mc._x;
    //gety = player_mc._y;
    }

  6. #6
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    71
    How about canceling the function when the mouse is above the button, is it possible?

  7. #7
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,684
    Hi,

    you will need to mess around with it, did you try what I said above, was that any better for you

  8. #8
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    71
    Hmm... It's almost exactly what I'm referring to, but instead of going to the point where you clicked the button, the character go to the last point you clicked on the ground.

    Here a example game: http://cache.armorgames.com/files/ga...f?v=1471299087
    Last edited by CrazY.; 01-03-2017 at 06:16 PM.

  9. #9
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,684
    Hi,

    Sorry Crazy, you will need to work that out yourself, you have the code there I'm sure, mess around with it, add to add it, remove some of it !!!!
    I'm not looking through the games list either, no time, good luck.

  10. #10
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    71
    Hey fruit, you are correct, I must try harder to reach a result. Well, thanks for the help, I will see what I can do. Until next time!

  11. #11
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    71
    Hey fruit, good, I was able to correct the errors, instead of following the character mouse point, changed for him to follow the "effect" that is to click the mouse, it worked perfectly. Well, thanks for the warning, only with effort that we arrive at a result.

  12. #12
    Registered User
    Join Date
    Jul 2017
    Posts
    2
    It working well. Thanks
    Quote Originally Posted by fruitbeard View Post
    with this code, simply comment out

    else {
    getx = player_mc._x; horror games
    gety = player_mc._y;
    }

    like so

    else {
    //getx = player_mc._x;
    //gety = player_mc._y;
    }

Tags for this Thread

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

Poll by Flashkit.com