WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Simple program 2.0

ibarbech edited this page May 15, 2018 · 5 revisions

Tutorial for create a simple program

Tutorial for create a program with events

This type of program often have only one type of block where is all code, its name is main.

Below is shown how you can create this type of programs.

Open a example

In folder learnbot_dsl/learnbotCode/examples/ there are some examples. We can open the example follow_red_line.blockProject with the program Learnblock.

Program for the LearnBot follow the red lines

In order to execute this example you shouldn't check the checkbox Used Events.

This type of program have a variable with the time of execution of all program. Exist a function elapsedTime(umbral) that retunred true when global time > umbral.

Clone this wiki locally