helena's Recent Forum Activity

  • Hello rexrainbow

    I have problem with JSONTMXimporter. I used TMXimporter to success and then I wanted to try in CocoonJS and it won't support XML so I went with JSONTMXimporter.

    In Firefox on my Windows I got this problem:

    Javascript error!

    SyntaxError: JSON.parse: unexpected character

    http://localhost:50000/Rex_JSONTMXImporter_plugin.js, line 895 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer

    And then in CocoonJS:

    Javascript exception (line 19702 Tag: 'timer'): SyntaxError: JSON Parse error: Unrecognized token '<'

    What to do? Thank you.

  • Good suggestions, thanks!

  • Hello!

    How do I set so that one object will be solid for one sprite, but other sprite will not see it as solid?

    Thanks.

  • rexrainbow

    Is it this one: Are neighbor (UID) new?

    Then it might not be what I want as it ask for UID for both "chess".

    My scenario:

    Pick all objects (chess) of name BOX

    Check the tile below BOX: Is it empty, no chess there? Then move box down. (do so for all BOX)

    Is Player (chess) below BOX? Then kill player.

    Is Player side to side (not overlapping here) to ENEMY, then kill player.

    No specific uid, just going through all the objects of one type.

  • rexrainbow

    YAY! Thanks.

  • rexrainbow

    Thank you, the conditioning of else worked for not walking diagonally. I am more used to it in Basic programming...

    About get neighbor tiles, using Expression:DIR2UID(uid, dir)

    - UID ( number ) : The UID of chess.

    - Direction ( any ) : The direction.

    Then use condition: pick by UID.

    I am trying to understand this.

    the dir, is it in string like "up", "down", etc.. or in numbers - which numbers? 0, 180, 270, 360? Figured out this one, it is 0, 1, 2, 3.

    I have tried to apply it like this:

    board.dir2uid(player.uid, 0) it just response of -1 and then I tried to put (player.uid, "down") then it responds with Player's uid, which is not what I wanted.

    (player is a sprite, only for the player guy to walk around. the tiles are from a sprite with animation frames used together with tmximporter and board)

  • rexrainbow

    I am using Gridmove (on a Board).

    How can I do to prevent diagonal movement? if you press both up and left, it will go diagonal if you understand what I mean.

    I am impressed by your work, by the way. I wish there were more tutorials in the tutorials using your plugins/behavior.

    EDIT:

    Another question. How do I check the neighbor tile's content? (which tile of the tilemap)

  • blackhornet

    Great, thank you!!

  • caiorosisca

    Thank you! At first I thought it was something that is only for Chrome, but it is not so. It works in FF too.

  • It is good yes but sometimes I like to write stuff into debug to see how things go.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Firefox has a console if you press ctrl+shift+k. Ok, good.

    How do I write debug text there? Would prefer it over putting a text box in the app itself obstructing the view.

    In visual basic it would work like

    debug.print "hello"

    in the code.

  • rexrainbow Ok thank you for your quick reply. I will try to research more on the official debugger and see if I can write text to it.

helena's avatar

helena

Member since 1 Jan, 2014

None one is following helena yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies