helena's Forum Posts

  • 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.

  • 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.

  • This has been removed?

    I wonder how I would do if I want to let the app write info to separate panel instead for text box within the page itself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am asking here, but I am sure it is more of issue of my Firefox and/or Windows...

    When I click on a link to a CAPX project in the forum it shows a page of gibberish, instead for opening the construct 2 as it used to do so..

    I am on windows 7, 64 bits, use Firefox, latest version.

    Could you help me remind where I can do the settings for this?

    EDIT: It appears that it is this site/forum that is the problem, by a chance I went to one person's website and the link there works and clicks into Construct 2. Hmm.

  • English is my third language. I am bilingual, Swedish (text) and Swedish sign language.

  • I have been on Construct for a few months now. Really on and off, as I do not have 48 hours a day.

    Today, or really, tonight, I learnt about Trigger Once. I wish I have known this earlier. Then I would not have made the very convoluted and complicated event coding I did in one of my game in progress. To its defense, yes I have read the whole manual, but flood of text is not the best for me as I am a visual learner. I went to actually read some tutorials on logic (sounds boring) and there it is!

  • If there's no "quick" way to do so, I guess I have to go for each tile shown, on X and y and identify these, and then do action on these?