dansk1978's Recent Forum Activity

  • Thanks, I'll give it a go.

  • Hi

    I am really struggling with events. I am trying to write one where it checks whether one of the player 1's counters is currently overlapping another player 1 counter, or a player 2 counter, or has been dropped back on the same spot as when it started. I was wondering whether someone could answer:

    1. If the condition in the event says "Player 1" (for example) - is that the instance that has been selected by the player or is it some general sprite? For example, I have an event where "player 1 is overlapping player 2".

    2. If I want to compare an instance variable on a counter with the UID of a sprite on the background, how can I find the sprite over which the player 1 instance is hovering?

    Hope this makes sense and any help would be appreciated!

    Thanks

    Matthew

  • Hi

    I'm Matthew from Norfolk and am currently writing my first two games in Construct 2. I've some experience in programming but this is going to be a good challenge! Thanks to everyone who has helped me so far!

  • Excellent, thanks!

  • Hi

    I'm used to coding in C# and for my latest game, I want to check whether the player has won or not after each turn. Normally I would consider creating a method to do this (and which could be called from a number of places) but I'm not sure how this might be implemented within Construct 2? I know how to create simple events but they seem a bit too simple - or I'm probably missing something - on how to check that three counters are lined up (for example)?

    Thanks for any help.

    Matt

  • Thanks very much! I've managed to get the counters to now drop into place.

  • Are there any pick nearest/touch examples at all?

  • Thanks for the help - it's very useful. I've tried that but the sprites either don't snap or end up on top of each other at one place (snapped). I think I may need to specify a particular cell somehow.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi

    I have a sprite for my board game and 9 positions that it can go on top of. I am using drag and drop but am struggling to drop the piece on one of the 9 defined cells rather than a gap in between. I would like the piece to be snapped to the nearest cell that it can go on when dropped - should I be using pick nearest in some way?

    Any help gratefully received!

    Thanks

    Matt

  • Thanks, I'm just wondering at the moment whether to make my "spots" (where the counters land) to be instances or a family and how to reference them all within events - such as movement.

  • Thanks that's great - I'll test it out tonight.

  • Hi

    I used the duplicate sprite feature (holding ctrl to copy more) - are they instances or sprites?

    Thanks

dansk1978's avatar

dansk1978

Member since 12 Nov, 2013

Twitter
dansk1978 has 4 followers

Trophy Case

  • 11-Year Club
  • x2
    Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

13/44
How to earn trophies