Alexixiv's Forum Posts

  • I tried to simplify it, I really did, but it seems without the redundancy in place I was experiencing bothersom bugs. This I suppose is a full checks and balance system. I am sure there is a more simplistic way but I could not get one to work for what I needed.

  • Ok here is the capx I put together showing Dictionaries and JSON:

    docs.google.com/file/d/0B4hvjRyB7pvBZEUtdUhvX3ZLVkU/edit

    The dictionary can be used to store the names of animation names as a globally accessed value.

    Hope this helps

  • Here is a capx using the Dictionary and JSON system:

    docs.google.com/file/d/0B4hvjRyB7pvBZEUtdUhvX3ZLVkU/edit

    also here is a cool JSON syntax validator:

    jsonlint.com

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have started trying to answer a question similar to this here:

    scirra.com/forum/topic64791_post401818.html

    I will have a capx with this soon...

  • I will put a capx together

    will take me a little while to strip it down so that only this function exists

  • Your welcome, glad I could help!

  • I am currently storing mine in a dictionary as I have a lot of values, but there are a lots of "set" and "get" expressions flying around, but it works best for me. Lets me recycle lots of values and it keeps them global.

  • Did you set the crates and the controllable sprite to "solid" in the behaviors?

  • Test movement? Could you be more specific? What exactly are you attempting to do?

  • Yes, I had a similar delima recently. What I did was create a dictionary to store the values that I wanted set in the other layouts. The dictionary content also became the foundation of my save system. JSON is pretty simple to understand.

    1. Create a dictionary object (this is a global object)

    2. Create what I call a "validate button"

    -Create text box called validate

    -Create event "On left click of object 'textbox validate' download DictionaryasJSON AND set textbox value to DictionaryasJSON

    3. Launch your game and click on the 'validate' object and download the JSON file. This will provide you with a template for adding values by hand instead of having to push them all initially.

    4. Find the JSON file and put in all your keys and values (you will need to set it to open with notepad)

    5. Save the JSON notepad text file and in construct2 right click on the "Files" folder on the project list typically on the right hand side and select "Import files" then select the JSON file you just modified. (from now on you can doubleclick the JSON file in the project to modify it and blow the other one away.

    6. Set your "on layout load" to set the dictionary to the contents of the JSON file (this is to initially populate it, these values will remain as long as the game is running as it is stored in RAM)

    7. Now you can use the Dictionary Set key and Dictionary.Get to call upon values like to set and start the name of an animation stored in it.

    Let me know if I need to be a little more clear and I will capx it for you.

  • I would create an object that is invisible and sets its position right behind the main sprite then have the rescued sprite constantly move to its position.

    Just to put the concept simply...

  • I am keeping everything dynamic in a Dictionary object... which is a global object... is that bad? What kind of "trouble" did you run into?

  • I wanted to share my method for accomplishing 4 way rpg top down style movement in which each direction has its own animation (no rotation). The problem I was running into was while default controls for 8 direction movement were enabled it would cause the animations to get out of sync with the movement when more than one direction key was pressed, which does not scream quality to me.

    For this to work "Default Controls" must be set to "No" on the sprites 8Direction properties.

    Here is the capx file, simply use the arrow keys to move the sprite.

    docs.google.com/file/d/0B4hvjRyB7pvBUDhYdDQ3TmlHZGM/edit

    Here are the events:

    <img src="https://lh6.googleusercontent.com/-VWAnGrFcS2U/UPhoMZK8dqI/AAAAAAAACfc/QTFt9ziqkbc/s800/KeyMoveEvents.png" border="0" />

  • Totally getting my vote and my fiancees vote as well, this program has kept the developing doors open for me when all my coders gave up. I don't care if I ever finish my game because it is fun to make and construct 2 keeps the ball rolling.

  • You should totally make a multiplayer version where you could wash other peoples stones and see how they have progressed. Oh you could call it "Rock Quarry" People could even pay to have their stone relocated closer to friends stones!!!