User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Making items & item slots for RPG, please help.

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Apr 2008
    Location
    California
    Posts
    357
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making items & item slots for RPG, please help.

    I really have no idea how to make item slots, bags or for that matter, a shop. Does anyone have any ideas? I know it is possible (I've seen games with them made by MMF2, I just don't know how they did it).

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    ZayLong's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help.

    dude, i have been sweatin over this for like ever. and i STILL cant figure it out. but i did have a small idea...

    first you would make a counter.

    and instead of numbers go and change the numbers to items.

    with 0 being nothing, 1 could be a potion, 2 could be ether.

    then what you would do is make an on loop event saying to create x ammount of these counters at start of frame, -32y postition from the last one.

    then when you pick up an item,like a potion you would check if htere is one of those counters thats NOT over 0 (zero meaning thers no item in that space)

    so if there is a 0 then you would take the value and change it to whatever potion is (1 in this example)

    I just came up with this on the spot so it might not work. Ive been trying all week to come up with an idea for an inventory so im goig to try this as well, ill tell you if it works out.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help.

    I recommend trying the "Magic Deque" extension. It holds arrays of data and you can sort / move the data around. Perfect for shops / inventories.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Apr 2008
    Location
    California
    Posts
    357
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help.

    Sorry Random, but I don't quite understand arrays. All I know is that that there is a value named by coordinates and you'd have to set each a value. Actually, (sudden freak brainstorm) if I combine your idea, and ZayLong's idea that might just work. Thanks!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    ZayLong's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help.

    Actully, using an active object would be better to use as an item slot cuz you can set each of the 32 directions to a different item instead of having 9 with a counter object.

    im gettin ideas as well!!

    an array sounds like it could work. im gonna try that as well.

  6. #6
    RayMarble
    Guest

    Re: Making items & item slots for RPG, please help.

    You can use a counter too, just set it to "animation" and you can have as many icons for the items as you need.

  7. #7
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help

    If you only use directions your limited to only 32 items, if you use animations you can have over 9000 items.

    Events

    Always
    -Set Direction ("Item") to #Alterable Value A("Item")#
    -Set Animation ("Item") to #int(Alterable Value A("Item")/32)+1#

    I'm not sure if this will work properly but it's worth a shot.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    ZayLong's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help

    im still having trouble adding items though.
    how would you make it so that when you find a potion or whatever it goes on the next empty avalible space. ive been doing this since 3:00PM!

  9. #9
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help

    Complicated, not even I understand... but here is a post of an inventory example made by DanielRehn

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Board=5&Number=22419&S earchpage=1&Main=3318&Words=Inventory+DanielRehn&t opic=0&Search=true#Post22419

    Hope it helps

  10. #10
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making items & item slots for RPG, please help

    Quote Originally Posted by ZayLong
    how would you make it so that when you find a potion or whatever it goes on the next empty avalible space. ive been doing this since 3:00PM!
    This is exactly where the magic deque is helpful - sorry, I should have said "lists" instead of "arrays". Because that's what it does. Note that it won't allow the user to arrange items at will - it will always "snap" them together. So what you can do is loop through your deque everytime something changes, and update your inventory objects accordingly. You can use the loop position multiplied with the size of the items to set their position accordingly on screen.

    Or have one object at every slot, as recommended before, and set the animation frame to the graphic. If there is no item, make it invisible. Then again loop through the deque, and update each object.

    If you use a real array instead of the magic deque, you can allow the player to place his items wherever he wants, in the inventory (maybe a better idea). To find the next empty space, just loop through the array indexes and once you find an empty value, there's your spot.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How much slots does a string use?
    By BartekB in forum Lacewing
    Replies: 7
    Last Post: 27th September 2013, 10:11 AM
  2. Best way to do multiple Save Slots?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd October 2012, 08:51 PM
  3. Scrolling inventory slots for infinite items
    By Blizna in forum File Archive
    Replies: 0
    Last Post: 12th June 2009, 12:49 PM
  4. Keeping items when making game
    By IIMikII in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th October 2008, 10:30 PM
  5. Making debugger items
    By Anders in forum Extension Developers Lobby
    Replies: 5
    Last Post: 17th August 2006, 01:36 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
  •