PabloDev's Recent Forum Activity

  • Oh, you can just save it to json and then load from json.

    Yes, that is true but only the TILEMAP, you can not load a new TILESET in any way.

  • You can load an image from url into the tilemap, but you can't have 2 instances of the same object with a different image, so 1 image per tilemap object.

    I understand but I think there is a bit of confusion, in DOC says this:

    Load image from URL

    Load a new tilemap image from a given URL. It is not used until the image has finished downloading, and On image URL loaded triggers. Images loaded from different domains are subject to the same cross-domain restrictions as AJAX requests - for more information see the section on cross-domain in the AJAX object. Data URIs can also be passed as an image, e.g. from a canvas snapshot or webcam image.

    In DOC talks about loading a TILEMAP image, but does not say anything about TILESET, the TILESET is the set of tiles that you will use to build the map with the tilemap object.

    I want to load a new TILESET in my TILEMAP object.

    I understand that you can not have two equal objects with different TILESETS.

    That's not a problem for me because I'm just going to have a single tilemap object.

    I want to change the TILESET of my tilemap object at runtime.

    But there is no action that is "Load new tileset" on the tilemap object.

    Load image from URL I think it only loads a new map for your tilemap object, but it does not load a new TILESET for the object.

    Maybe I'm wrong but I think it's not possible to load a new TILESET into a tilemap object, in fact, you can not access the properties (width and height) of the TILESET image loaded in a tilemap object.

  • When you create an object, any actions below that refer to that object, so maybe if you do something like:

    Start of layout ->

    create object Tilemap

    load tilemap

    create another object tilemap

    load second tilemap

    It should work. If you want better control over it you can just pick which tilemap you mean using IIDs. Something like:

    Start of level->

    Pick tilemap where tilemap.IID = 0 ->

    Load tilemap1

    Pick tilemap where tilemap.IID = 1 ->

    Load tilemap2

    I'm not sure I understand this, I just want to load a new TILESET (NOT TILEMAP) into a tilemap object.

    Then I do not understand ... what would help me what you say ?.

  • Hello, I have a tilemap object with its set of tiles.

    I would like to know if I can load a new set of tiles on that object and how should I do it ?.

    I do not want two different tilemap objects, I want to use the same object and for that I need to change their tiles according to the level the player plays.

    -----------------------------------

    In another case, why can not I access the width and height of the TILESET loaded in the tilemap object?

  • Thanks for the information guys.

    Another thing you can do is add a wait 0 to give C2 a chance to update before running actions after the wait.

    Where should I add the WAIT(0) in the capx file I uploaded before?

  • In debug mode you can check how many instances there are of the bat sprite. Maybe there are -for some reason- 0 instances.

    Ok I've tried it, but I do not see any sense of what's happening.

    That is, the condition is true although in the debug it says that the object exists.

    I do not see sense.

    Try the test.

    When you press space, the text is printed.

    How is it possible?.

    That condition should be false because the object was created before, so sprite.count is not <= 0.

  • Hello, is this correct?

    I create a bat in "Trigger once".

    Then check if there are any bat in "mulcielago.Count > 0" and this gives FALSE as a result.

    Is this correct or is it a bug in C2?

    In the test file, press space, the text will be printed even if a sprite already exists and sprite.count <= 0 should be false.

    https://www.dropbox.com/sh/ehrch6zye1tuq33/AACqlv_6UnWbOaJSLhy8n3Era?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello again Rex, could you take a look at this and check that it works correctly ?, I get the feeling that there are still some strange things.

    There is a lilac sprite which is the area where the random points are set.

    The red sprite sometimes leaves the area as if a point had been put beyond the zone and continues making some very abrupt movements, I do not know if this is a fault but I think so.

    It may be necessary to run it twice or three to make it happen but in my tests most of the time it was seen in the first run.

    https://www.dropbox.com/s/d922fgrd0sg05rf/testSpline.capx?dl=0

  • i am currently working on an adventure game using Construct 2, you can use c2 for everything you imagine in 2D basically

    I love the black and white look, are you using any plugins to create the sphere effect in the image?

  • You probably want to create the directory first, then the sub directory.

    I realized that later, thank you !.

  • Ok, there is a problem here and it is that NWjs can not create subdirectories:

    This will do nothing

    Guess it's an NWJs bug?

  • EDIT: Ok, my trust.

    I thought you could create directories and subdirectories in one action.

    Hello, suddenly, NWJs today does not generate the directories I want.

    The other day worked but today for some reason does not, does not generate the directories, any idea ?.

PabloDev's avatar

PabloDev

Member since 2 Nov, 2015

None one is following PabloDev yet!

Trophy Case

  • 9-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Email Verified

Progress

12/44
How to earn trophies