User Tag List

Results 1 to 2 of 2

Thread: Inventory problem.

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inventory problem.

    Hello all, I'm trying to make an inventory like monkey island 1 game.

    I'm testing pick up action.

    If i have 2 objects when I pick up them how can I put them in different positions in the inventory?

    To pick up them I do this:

    *when user clicks with left button on pick up object------set pickupcounter to 1
    *when user clicks with left button on object1 and pickupcounter is 1 -------- set pickupcounter to 0, add 1 to pickedobjectscounter
    *when user clicks with left button on object2 and pickupcounter is 1 -------- set pickupcounter to 0, add 1 to pickedobjectscounter
    (I NEED TO CORRECT THIS
    *pickedobjectscounter is 1 --------------------put object 1 X351, Y390 and put object2 X351, Y390
    *pickedobjectscounter is 2 --------------------put object 1 X351, Y390 and put object2 X432, Y390

    In the game i don't know if player will choose first object 1 or object 2 so I need to make a code where if the player choose objectX as first it goes X351, Y390, and if the player choose objectX as second choise it goes X432, Y390

    How can I do?

    Thanks

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inventory problem.

    Create an invisible "marker" object that starts in the first on-screen slot, and put the object at its location when it's picked up. After doing that, move it along however many pixels in the same action, so that the next object will be placed in the next slot.

Similar Threads

  1. problem with the inventory object
    By mickarrow in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th May 2013, 02:37 PM
  2. Almost done with inventory, just one more problem!
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th August 2008, 01:46 PM

Posting Permissions

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