The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 7 of 7

Thread: Inventory, Merchant system

  1. #1

    Inventory, Merchant system

    i wanted to create some sort of an inventory/merchant system in my game with flash 8
    but i cant program for beans, and have no clue where to start.

    figured i could set it up so that when the user interacts with a certain npc, they go to a "merchants" scene or "merchants" frame where they can buy and sell various items

    but whenever i hit the enter button the flash movie increments to the next frame and plays untill it reaches its original frame.

    how do i get it to stop playing when i hit enter?

  2. #2
    have you tried putting: stop(); on your frame?

  3. #3
    yes, ive tried using 'stop();'
    i pretty bad at programming, but im not that bad

    read somewhere that the enabled shortcuts on the swf dont work in a browser or something like that

    so is this something i really need to be concerned about?

  4. #4
    Pressing enter wont have the same effects in a browser. Just use a different button for it, like shift. Then when it comes to finsihing it change the button to enter. Otherwise you won't be able to test it at all without wasting some time.

  5. #5
    er ... i know that this should be really simple but ... how would i get this thing to move to the next frame.

    I placed this case statement inside a function that becomes available when the options in the dialogue appear (or some such thing)
    depending on the users input, dialogue_opt = 1 or 2
    when dialogue opt==1 then the user should be sent to an item screen.

    ive tried using play, nextframe, gotoandplay/stop, i got nothing. how do u get this thing to go to frame with item screen???

    switch (dialogue_opt) {
    case true :
    switch (currently_selected_option) {
    case 1 :

    trace("go to next frame")
    case 2 :
    _root.speach_box.txt_box.text = ("(shift_function)dont be rude");
    default :

  6. #6
    no wait, i got it. looks like another navigational issue

    it works if i use _root.gotoAndPlay(frame#);

  7. #7
    Quote Originally Posted by eptigo View Post
    no wait, i got it. looks like another navigational issue

    it works if i use _root.gotoAndPlay(frame#);

    Don't forget, there is also:

    movieClip.gotoAndStop( frame# );
    you = function(){
    setEnabled( true );
    setEnabled( false );

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 Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012