mandanceman's Forum Posts

  • Thanks a bunch!

    It's not really what I wanted, but it taught me what the "for" command does, which is pretty much exactly what I needed. :3

    I won't be able to work on this for a few days, but when I get back to it, I'll revive this thread if I need more help on the subject

  • :<

    Is this question too difficult? Am I not being clear enough on what I want? Am I asking too much?

    This is an important question, I can't keep working on my project if I can't make an inventory list.

  • I'm loading it just fine, like I said, I have an array object named "ItemLoader" for the purpose of loading items.

    The problem is that I don't know how to sort things from ItemLoader into another Array, and then get construct to print the names and quantities of everything in that array.

  • bump

  • Been toiling with this for a couple days now. I found a couple other threads on inventories, but none that helped me with this inventory.

    http://www.mediafire.com/?k5zfd48m2t6w1g4

    Here's the .cap for both programs. Ama Object Creator saves arrays for objects that I want to load into a player's inventory, the other program, AmaProgram, is the one I'm having trouble with, which actually keeps track of player's inventories.

    I have two arrays set up, one's called ItemLoader, which I'm using to load arrays made by Ama Object Creator, the second is ItemList, which is the actual array of the current character's inventory.

    I also have InventoryHash, which is something I was trying after looking at an inventory tutorial, but couldn't get that to work either.

    Basically, I want my Add button to pull an array from the items folder, load it to ItemLoader, then move the information in ItemLoader into ItemList.

    The arrays are 50x wide, and ItemList is 50x wide and really tall, I want ItemLoader to file items into ItemList by y, so the first item takes up 1-50x, 1y; second takes up 1-50x, 2y; etc.

    And then I need "InventoryList", a listbox, to show every item in ItemList, and how many times it occurs.

    Whew, that's a lot of stuff. Thank you in advance to whomever has the will to cure my noobness :p

  • Thanks! And sorry for wrong forum.

  • How do I save to a specific folder? I have my program to save as Saveedit.Text&".acs", but after a while of using this program, the main folder could get really cluttered with .acs files. Is there a way to save to \acs files\ or something?

    Sorry for another seemingly simple question, but I couldn't find this on the wiki either.

  • Thanks! Pulling the 100 and 10000 out of the integer parenthesis worked.

    I knew it was something simple. :p

  • First of all, this seems like a really basic question. I searched the wiki and the forums, but couldn't find an answer, though I'm sure it's there somewhere. :S

    I'm having trouble with the math. My event looks like this:

    Every tick -> Set variable totalmoney to int(global('Bronze'))+int(global('Silver')*100)+int(global('Gold')*10000)

    The purpose of this is so that the silver and gold coins are worth more than the bronze ones, but no matter what I do, I can't get construct to multiply int(global('Silver') or Gold by anything. It keeps returning the total of the coins instead of the sum of their values. I've tried using int() around the 100 and 10000, I've tried float(), I've even tried making new global variables that are always equal to 100 and 10000 but construct just won't multiply.

    tl;dr: If I put 1 into the "bronze", "silver", and "gold" editbox, I want it to equal 10101, but I can't get it to equal anything other than 3.

    Below are screenshots and the .cap

    <img src="http://i6.photobucket.com/albums/y246/Yank1234/construct1.jpg">

    <img src="http://i6.photobucket.com/albums/y246/Yank1234/construct2-1.jpg">

    http://www.mediafire.com/?8cgeuk8riec9c1k

  • Thanks again hound. : D

  • I've tried multiplying a variable several times, but even if I add "*25" to the end of a variable, it just prints the variable. I need maxhealth to equal Constitution multiplied by 25.

    <img src="http://i6.photobucket.com/albums/y246/Yank1234/maxhealth.jpg?t=1284456678">

    constitutionedit is an editbox, maxhealth is a number variable.

    http://www.mediafire.com/?monkg3ssbvjyoyt - amaprogram.cap

  • Yeah, I didn't get bored of minecraft until I felt like I'd done everything.

    I hope he adds a higher difficulty in a patch too, the mobs are impossible to die to on hard once you get used to their ai, especially if you're underground, where luring skeles is easy.

  • > I will tunnel until I reach HELL!

    >

    Be careful - that is actually possible in this game.

    Not only reaching lava, you can also on occasion tunnel past the bottom of the map. If that happens, you'll fall to your death and lose all your items.

    If you dig down and see what looks like sky, just fill it back up :p

  • Notch used to livestream himself playing minecraft while talking about future updates, those were always pretty funny.

    I own a copy of this, and when multiplayer alpha has enemy mobs, some friends and I are going to have a LAN dedicated to it. :p

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here's an example for an 8 direction grid movement:

    http://dl.dropbox.com/u/5426011/examples2/8dirGrid.cap

    made in 0.99.94

    I haven't used XAudio2 much but autoplay works fine the first time with any other wav file I've used. For a fix for that particular file throw in an event like this:

    + System: TickCount Lower than 3
    -> XAudio2: Autoplay file "C:\Documents and Settings\Rhino\My Documents\Downloads\Amaranthine\Amaranthine\Sounds\tick.wav" (No loop)[/code:2zmm51yy]
    and the tick will play the first time you hit a key.
    
    In the last problem the reason it's not working is arrays are 1 based.  (1,0,0) doesn't exist so no value is getting set,  change it to (1,1,1).
    
    -cheers
    

    Wow, thanks! : D

    edit: I can't seem to get the array's 1,1,1 to appear in debug, no matter what I set the array's dimensions to, debug shows it as having 1,0,0 through 10,0,0

    edit2: I got it working just fine with an array saving as a .dat, only a temp fix though, I'd rather things like resolution be editable in the ini so players don't accidently lock themselves out with unplayable settings.