shinkan's Forum Posts

  • did you set the angle of motion for the bullet behavior?

    You can't do that in free version of C2.

    Only if you buy Personal or Business licence you are able to save to other formats than html5.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Could you please change your post title to something more than "How do I"?

    Thank you.

  • There's also quite few examples here, that lot of people seems to not know about

    c:\Program Files\Construct 2\examples\Touch - zooming.capx

  • Did you save your images from 3ds max using proper gamma settings?

  • In your C2 project right click on the Files folder and choose "Import file" and from here select and import your json file.

  • You need to use Ajax plugin to load up the file.

    Ajax:Request project file and then Ajax:On completed set array to Ajax.LastData

  • Problem Description

    It's still not working as it should.

    Everything is practically the same as in last bug report

    https://www.scirra.com/forum/tilemap-tilemap-tilesjson-not-updating-properly_t148345

    When you save a file using Tilemap.TilesJSON or Tilemap.AsJSON "c2tilemap":"data" is saving correctly (all tile ids and states).

    But "width" and "height" in .TilesJSON and "w" and "h" in .AsJSON are not changing back when you scale down tilemap object which is messing up the placement of the tiles.

    This is the tilemap object

    c2tilemap: true, width: 5, height: 5, data: 6x-1,3x0,2x-1,3x0,2x-1,3x0,6x-1 (5x5 squares with tiles in the middle)

    Same tilemap object after adding some empty tiles to the right (scaling up the "width")

    c2tilemap: true, width: 9, height: 5, data: 10x-1,3x0,6x-1,3x0,6x-1,3x0,14x-1 (notice "width" have changed from 5 to 9)

    Now scaling this object down, back to 5x5 and saving it gives you this:

    c2tilemap: true, width: 9, height: 5, data: 6x-1,3x0,2x-1,3x0,2x-1,3x0,6x-1 - data is exactly the same as in first image, but width is still 9 instead of 5.

    And this is how it looks when you load it back to the 5x5 tilemap.

    All tiles placement is messed up and shifted. Most of the tiles are behind the edge of the Tilemap object, so you have to scale it up again to see rest of the tiles (image below).

    (This is how it looks fully when you add some more empty tiles around.)

    Same file

    https://dl.dropboxusercontent.com/u/343 ... pJSON.capx

  • Did you try posting this on INTEL forum, where people who made XDK can have look at this? This is not XDK support forums.

  • distance(First_Sprite.BBoxRight, First_Sprite.Y, Second_Sprite.BBoxLeft, Second_Sprite.Y)

    But i think you are overcomplicating this a bit

  • Same as Tokinsom here.

    As soon as I make the selection and release right mouse button C2 freezes for 2-4 seconds and then crashes (every time).

    Shift+right click on single tiles works normally.

    Win 8.1 x64

  • On sprite clicked -> set sound to 1-sound
                      -> set frame to sound
    [/code:1e4gy7ne]
    This will suffice to switch sound  on/off  and same time set proper animation frame to represent sound state.
  • You could easily wrap those 8 events in a function though, right?

    Not really, because you can't properly set a function parameter to proper tilestate.

    It's not a big issue or anything, it's just annoying that I need to make all of that while I could make just one event instead.

  • You can already access the tile state using the "Compare tile state at" condition.

    Yeah, but it's not helpfull if you want to fill an array with tiles and their states

    You need to make 8 event to get tilestates from each tile while retrieving data from Tilemap to Array and then make another 8 reversed events to send back data from array to Tilemap.

    i think I made my first statement not complete so let me rephrase that "there is no way to return the tile state from tilemap as expression"

    Like simple example: set variable to Tilemap.TileStateAt(TileX, TileY)