Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. What is wait # frames based on

What is wait # frames based on

Scheduled Pinned Locked Moved Help
2 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Tyller_T Offline
    Tyller_T Offline
    Tyller_
    trusted helpers
    wrote on last edited by
    #1

    I am having inconsistency due to unknown reasons where a device with better hardware appears to have somewhat different results than worse devices, is wait # frames just wait (#/framerate limit) seconds, actually wait until the screen has drawn # times, or wait until if there was # blocks here when it would finish, the last one is effectively just wait # ticks, I want to know due to technical issues with a project I’m having across devices relating to the wait # frames block

    <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
    </div>

    CreatiCodeI 1 Reply Last reply
    0
    • Tyller_T Tyller_

      I am having inconsistency due to unknown reasons where a device with better hardware appears to have somewhat different results than worse devices, is wait # frames just wait (#/framerate limit) seconds, actually wait until the screen has drawn # times, or wait until if there was # blocks here when it would finish, the last one is effectively just wait # ticks, I want to know due to technical issues with a project I’m having across devices relating to the wait # frames block

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @jaysen4games-gmail

      Hi, the wait block simply waits some time, and the time period can be specified by different units, where a frame is assumed to be 1/60 seconds. It does not account for the actual number of frames since it does not have that information.

      If you need to run some code at fixed intervals, a better choice might be this block:

      a3ace60e-f760-427f-b415-e1cf9b179f67-image.png

      This block will try to run a new iteration by the fixed time interval, no matter how long it takes to finish each iteration.

      If that does not work for your project, please share the project with us, and we can probably figure out a working solution for you.

      CreatiCode Support

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better šŸ’—

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • CreatiCode