Sandcrawler's Forum Posts

  • What about using the INI object/file instead? Its kinda setup for this sorta thing.

    Add the INI object to your layout, and make it global. Then you will need to Set the INI file to be loaded from.

    [Dwarf]

    Race=Dwarf

    Agility=100

    Strength=105

    Intelligence=100

    Charisma=90

    Then use an INI.ItemString (for letters/strings) or INI.ItemValue (for Numbers)

    So just to load the values above you would do the following:

    INI.ItemString("Dwarf", "Race")

    INI.ItemValue("Dwarf", "Agility")

    INI.ItemValue("Dwarf", "Strength")

    INI.ItemValue("Dwarf", "Intelligence")

    INI.ItemValue("Dwarf", "Charisma")

    This way rather than a file for each race, you could have a file for all of the races, just put them into a different group. With an INI file the keys should never be messed up.

  • You can use the Inheritance layer for some of it. I usually use it for the GUI, and player sprites.

    Just set the Inheritance layer option in the Layer properties, to a unique name of a layer (can be in a different layout)

    I'm not sure if this helps in your case.

  • I was testing this some more today, and hoping to find a solution.

    Its not just when you click one of the objects that perform linked actions, it happens with any left mouse click (even on the blank canvas)

    So I'm not sure if its something in my cap file, or just a problem with the Mouse input?

    I worked around it by forcing the players to click the mouse before they can play. I would still like a solution that eliminates the lag spike, if there is one.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello all.

    I've been working on a small game that I made for Ludum Dare last weekend (updating it, and fixing a few things)

    But I have a problem with the Mouse On Click action (or something related to it)

    When I first start the level, then go on to click on an object it takes a second or two to react were the screen is frozen during the time. After the first click it won't do it again until the layout has been reloaded. Once reloaded it will do it again.

    I tried searching, but didn't find a topic with a similar issue, I did try making a new mouse and keyboard object, replacing the event, and then deleting the old mouse and keyboard.

    Download: (most recent version of construct + Path Movement addon)

    sandcrawler.net/game/LD21/ubug.zip

    To see what I mean launch the exe, click play. Then when you click on one of the objects it will lag out (easy to tell if your moving with A and D) before doing what its supposed to (make the object transparent, and disable collisions)

    Any solutions, fixes, or possible workaround would be nice.

    Thanks

  • That was it, thanks R0J0hound. I sized the minimap off of the viewable area, and didn't think about sizing it based on the layout size.

    I've had another problem with the minimap Plot Object color is getting lost on some layout, while working fine on others.

    Some images to explain the problem. The event sheet is shown at the bottom of the images.

    The Objects (player and two other sprites) are being colored black:

    <img src="http://sandcrawler.net/game/LD20/minimap-plotobject.png">

    They should be the color of the sprites instead (it works on other layout with the same events):

    <img src="http://sandcrawler.net/game/LD20/minimap-plotobject2.png">

    This is the Event sheet that both of them call (with minimap stuff circles)

    <img src="http://sandcrawler.net/game/LD20/minimap-plotobject3.png">

    On the first screenshot if I remove the minimap events for drawing terrain it will plot the colors the intended way.

  • No Minimap open

    <img src="http://sandcrawler.net/game/LD20/nominimap.jpg">

    minimap open

    <img src="http://sandcrawler.net/game/LD20/minimap.jpg">

  • In the screenshot I showed the minimap (its transparent). The oval shap should actually be a circle. Also on the left side there is the white rectangle shape, it should have went all the way up to the top, and bottom.

    The actual placement of the objects is correct in the level, just when the minimap is opened they are wrong.

  • I'm working on an entry for LD20, and ran into this bug with the Minimap. It does this (see screenshot below) on all of the layouts that I have, I set the scale to 1 for Draw Terrain. I tried changing the same of the minimap, but it makes no difference in how it renders.

    I'd like to have it working if anyone has an idea as to what is causing the problem, and how to fix it.

    CAPS Download:

    http://sandcrawler.net/game/teleporter.cap

    <img src="http://sandcrawler.net/game/LD20-buggedminimap.jpg">

    Thanks