Centra's Recent Forum Activity

  • I'd like to be able to choose a number from a dynamic list of numbers, I think in probability it's called a dependent event.

    I have three sprites (or one sprite and two instances of another sprite to save resources), each sprite needs to choose a number but cannot choose from one already chosen.

    For example the list is 0,1,2,3,4

    Sprite instances x y and z each choose in order.

    X picks 0, so y gets 1,2,3,4, it chooses 3. Now z can choose from 1,2,4 and chooses 4.

    so we end with

    x 0, y 3, z 4.   

    then these are destroyed by going off screen and the new instances can choose from 0,1,2,3,4,

    How would I go about doing this?

    I've been working on this problem for a few days now and tried using random trees but it just ends up being indecisive and I can't exit the loop because there is always a duplicate. I'd am looking for a way to set up such a dynamic list.

  • <img src="http://i43.tinypic.com/2n6vg29.png" border="0" />

    Finally got it to run without duplicates, debugging display for frames doesn't work though

  • My main problem seems to be 'some event that picks two sprites'

  • <img src="http://i43.tinypic.com/kei1cp.png" border="0" />

    this one doesn't give a runtime error but it doesn't prevent duplicates either

  • Thank you very much, I appreciate you going the extra mile to explain how picking instances are handled. Following your example at the end, still giving me problems though.

    <img src="http://i42.tinypic.com/2wqcy9v.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Posting your findings does help others who are following in your footsteps, i know it's helped me in a number of unresolved posts when people post their findings even if its not solved at least there's a little more info to go on.

    Shame though, I thought the community was more active.

  • people aren't as helpful as they used to be

  • I can't get the compare frame event to work, I have a sprite that spawns two instances of a new sprite every 3 seconds and I'd like it to compare the two new instance's frames to check if they are the same. if so, change it

    capx file

    fileswap.com/dl/lEagoxlFE

    Alternatively I'd like to know how this would be best accomplished using families just for my own sake because I've tried it with them as well to no avail

  • I am having difficulty with the pick random instance event because it seems to be delayed.

    I have an auto runner setup where the player moves right and blocks (from a family) spawn from a sprite off screen and move left towards the player via bullet motion. I have a system event for pick random instance which is supposed to choose one of the two newly spawned blocks from the family and toggle its boolean to true. Upon doing so it will change the frame to frame 1.

    The problem (for me) is that it chooses the instance only when the blocks are near the middle of the screen and already over the player, rather than instantly (or just coming onto the screen)

    <img src="http://oi41.tinypic.com/2uz58xy.jpg" border="0" />

    (ignore that random variable it was left over from playing with it)

    Any idea why this is happening and how to fix it?

  • When I export an html build the animation doesn't appear, am I missing something? Works fine in preview mode

  • I've been trying to get a simple flat/constant auto runner to work and noticed that the player gets teleported to the end of the tiled background and I'd like to know why?

    What would be a better approach?

    Number 1

  • Very helpful, thank you!

Centra's avatar

Centra

Member since 18 Jun, 2013

None one is following Centra yet!

Trophy Case

  • 11-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies