aquadijoib's Forum Posts

  • bloodshot,

    Here is an example:

    https://drive.google.com/open?id=0B7r2W ... 1RyT2R1a2c

    I hope it helps! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • It works now!

    Thanks!

  • Thanks blackhornet!

    I'll see if I have any white spaces before the xml.

    Thanks again!

  • Hi,

    I just tried to load my xml string via AJAX.LastData but it seems that I can't get it working. I tried many different things that I found in the forums and in tutorials... but it doesn't work.

    I want to get the values out of this xml string:

    <?xml version="1.0" ?>

    <xml>

    <item>

    <property>

    <id>1</id>

    <type>type</type>

    <name>name</name>

    </property>

    </item>

    </xml>

    And I'm using this to get it:

    XML.StringValue("/xml/item/property/id/text()") <----- In this case I should get 1 I think

    But that returns nothing. :/

    What did I do wrong? Is something with the xml file wrong?

    Thanks!

  • Any help about the xml plugin? How do I make such a properties file with it?

    Thanks!

  • Thanks LittleStain,

    So what do i have to do if I want to request the ID or something and how do I write that to the text file. I actually already tried the xml object but I don't really know how to use it.

    Thanks again!

  • Hi,

    I would like to make something like a properties file for each item in my game. So a file for a sword for example should look like this:

    ID=1

    name=sword

    damage=75

    ...

    The game should then be able to for example find the value of "ID" in the file.

    Is there a function like this already in construct 2 or if not can I somehow find the different values?

    Thanks!

  • mc15,

    I would say that you should do the same as the audio analyzer example does. But you should create more of those lines that show the wave as the music goes on instead of using the same lines and resizing them all the time.

    I hope you understand what I mean

  • I think you should take a look at the audio analyzer example. I don't know how to record audio though. Maybe with the User Media object?

  • gumshoe2029,

    Thanks for your help! It works now

    Thanks again!

  • Thanks I'll have a look at that

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    i want to add a world generator to my game that spawns objects randomly around planets. The objects should spawn at a specific distance because the planet has a range in which it pulls objects to itself with the platform behaviour.

    Here is a screenshot of my game with a planet:

    https://drive.google.com/open?id=0B7r2W ... jVtRi0zVEk

    The red line shows where the objects should be spawned.

    After they are spawned they will be pulled to the planet automatically (If they are touching the atmosphere) so everything i would like to know is how to find the right X and Y coordinates when the objects are spawned.

    Thanks! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • korbaach,

    I sent you the capx of my whole project as a PM. The game is in space so you have to go to the planet next to the start and the ship will automatically land there . Then you leave the ship with F. There is a piece of wood on the planet and everytime you go over it, it adds 1 more wood to the inventory. With Tab you can open the Inventory and when pressing E and standing in front of the chest (the blocky thing on the planet) you can open it. The swap works for the first time I think. But when you try to swap it again, only the amount shows up and everything messes up. In the array it shows NaN (Not a Number?).

    Sorry if my project is a little messy.

    Thanks!

  • korbaach,

    Thank you again for your amazing example! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    I implemented the system from your example in my project and tried it out. Something happens, but not exactly what I want <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> .

    The only thing that was changed is that I have 2 different types of slot objects. One for the inventory and one for the chest. Because I wanted the inventory slots to be next to the chest slots. So I thought that I simply have to duplicate it for the chest and the inventory.

    I put some screenshots of my events below. If that's not enough, please tell me and I'll send you my capx.

    Thanks!

    Links (in correct order):

    https://drive.google.com/open?id=0B7r2W ... HNWVF93QVU

    https://drive.google.com/open?id=0B7r2W ... DJGVTNDTW8

    https://drive.google.com/open?id=0B7r2W ... U1tc3Yxams

  • korbaach,

    Can you help me one more time please?

    I'm still not able to make it possible to move from chest to chest or from chest to inventory. I mean from one Z index (Storage) to another.

    Thanks again!