|
- Creating a Timer or Score Keeping function in the games
Hi @geri_hamada, There are a few different ways to use a timer - and countless ways to “keep a score” If you have a specific problem you are working on, perhaps I can help point you in the right direction, but if you just need more info, I suggest checking out this post: How to design and code a Timer in AppLab?
- Code. org Professional Learning Community
Code org Professional Learning Community, operated by Civilized Discourse Construction Kit, Inc Code org
- Adding a Delay? - Code. org Professional Learning Community
I’m using the code org curriculum for the second year, and figured I’d better get my butt in gear and get better at java script I was a database developer for years but I’m afraid my coding is awfully rusty so my apologies in advance – since I’m relatively sure I’m doing something dense:
- Is there anything called wait block because I really need them
In place of that, you can use setTimeout There are some other solutions like busy waiting (which eats up resources) Or await async, which does not exist in es5, and especially not code org It is not uncommon for forum members to not answer questions because they don’t have a solution (And in this case, they really don’t)
- CS Principles - Code. org Professional Learning Community
If you want irregular intervals I think your easiest option is to setup a timedLoop that “ticks” every 0 5 secs, and then use a counter to make it stay on for some multiple of 0 5 – 4 “ticks” in your case
- Examples of students finished project - Code. org Professional Learning . . .
For videos outside of Code org, a couple people have made things and shared on Youtube as possibilities, which might not be the exact projects - but show the possibilities! Brad msummers October 30, 2017, 2:14pm
- Recursos de Code. Org en Español
Aquí podemos compartir recursos para la enseñanza de Code Org en español Saludos desde Lima, Perú
- Code to wait for something to happen after touching
A student is wondering is there is a “wait” code? He wants his player to wait for a certain amount of time when touching another object and then for the player’s velocity to increase We looked through the game lab docs but couldn’t find something that would do that I did see this solution pop up when typing this request Thanks in advance!
|
|
|