dop2000's Recent Forum Activity

  • Then setting a random value to a variable should definitely work.

    On start of layout:
     Set r to random(sprite.animationFrameCount)
     Sprite set frame to r
    
  • You do not have permission to view this post

  • You do not have permission to view this post

  • In NWjs export you can change window title with NW.js object.

    In a web game this may be possible with scripting.

    document.title = "This is the new page title.";
    
  • Can you explain the task?

    Do you need to set one random frame to all instances? (say, frame 4 for all)

    Or random frames to each instance, without repetition?

  • You do not have permission to view this post

  • You need to pick the right spawner instance inside the function. Add another function parameter - SpawnerUID. Pass Respawn.UID when calling the function. Inside the function use "Respawn Pick by unique ID" condition.

    Or you can set "Copy picked" in function properties, then they should inherit the picked scope.

  • You want the frame to be the same for all instances? Then assign it to a variable:

    set r to random(sprite.animationFrameCount)

    Sprite set frame to r

  • You do not have permission to view this post

  • For example, when I pick by IID, if the IID exists then all the sprites will be picked.

    I believe the problem is not with picking. When you load an image into a sprite, all sprite instances receive the same image. If you want to load different images to different instances, you have to use multiple animation frames. Say, if you have 10 sprites, create 10 empty frames and set a different frame for each instance.

    By the way, if you want to pair each canvas with a sprite instance, you can add them to a container. This will simplify picking, creating and destroying.

  • Yeah, the site is construct.net haha

    You can upload your game to the Arcade:

    construct.net/en/free-online-games

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 271 followers

Connect with dop2000

Trophy Case

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

29/44
How to earn trophies