dop2000's Recent Forum Activity

  • Since every quiz question is a separate animation, you can do this easier without arrays. Put an instance with each animation on the layout (off-screen). Then in "On start of layout" event pick a random instance and move it to the layout. Repeat 6 times.

    This will work for numbers, letters, colors, or any mix of them. All you need to do is put the correct instances on the layout.

  • means all data from JSON Alphabet, Number, Color, will come randomly.

    You should have mention this before..

    If you are not planning to make frequent changes to this array, maybe it would be easier if you made it 1D. Put all values on one X axis (in one line), numbers first, then letters, then colors. Without empty spaces between them.

    Then you can use my method with Advanced Random, but for numbers you create premutation table with length 10 starting from 0. For letters - length 7 starting from 10. For colors - length 8 starting from 17. For mix of everything - length 25 starting from 0.

  • mesh transform?

    No, two physics joints and a few round sprites.

    Actually, using mesh transform may be a good idea. When I made that demo mesh transform was not yet available in C3.

  • Can I ditch the Preview_PICTURE_SET entirely? and just use another instance of "PICTURE_SET" for the preview purpose?

    Yes, you can. Just make sure it's not picked in the event where you assign random animations. You can use a boolean instance variable isPreview for this.

    When you need to pick the preview instance, use "isPreview set" condition

    When you need to pick all random instances, use "isPreview is NOT set"

  • That's not a script. It's events.

    Please study a few templates, they are extremely useful for a beginner.

  • 1. I don't know. You have lots of objects with long names, I have no idea about their purpose.

    2. Simply add "Sprite set animation frame to random(self.AnimationFrameCount)" after you set a random animation to the sprite.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to share your project file (C3P), not the exported game.

  • You can do something like this:

    Global Variable CoinsBalance=0
    
    Player on collision with Coin
     Coin destroy
     Add 1 to CoinsBalance
     CoinsText set to "Coins: " & CoinsBalance
    

    If you want to make a nice effect when picking coins, check out the new template "World to HUD Position" in beta version of Construct.

    https://editor.construct.net/#open=world-to-hud-position

  • Empty cells in the array make the task more difficult. You should either copy non-empty cells into a temporary array, and shuffle it. Or use this method with Advanced Random:

    dropbox.com/s/elkhyxz8u75syzb/QuestionForDop2000%20%28With%20Layouts%29.c3p

  • I don't understand what you are trying to achieve, even with the project file.

    Can you explain?

    If you need to shuffle 2D array, can you post two pictures - the original array and shuffled (manually, just as an example)?

  • If it's a simple linear gradient you may be able to calculate rgb values.

    You can also post it on a DrawingCanvas and read pixel data from it.

    If you are making a color picker, check out this page:

    howtoconstructdemos.com/hsv-color-picker-tool-c3p

  • The logic I gave you was for a 1D array, but you have a 2D array on your screenshot. I don't quite understand how you want to shuffle it.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies