Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 29-Oct-2018 14:27:56

Useless
Member
Registered: 4-Oct-2016
Posts: 83

How to create a "points counter"

Hello! How can I implement in my AR app a "points counter"?
Every time I push the right button (aka the right answer in my app, thinked as a "AR quiz") how can I increment by ONE a counter for tracking the final score, and how can I overlay this incremented score on my screen?
Best regards, Damiano

Offline

#2 29-Oct-2018 14:43:17

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,331
Website

Re: How to create a "points counter"

Hello,

sure you can using the var plugIT to increment score and then display the result when needed.
you can show the result in a dialog or text zone plugIT.

Offline

#3 29-Oct-2018 15:09:03

Useless
Member
Registered: 4-Oct-2016
Posts: 83

Re: How to create a "points counter"

Oh! Seems not so troublesome how I have thinked! Thank you very much!

Offline

#4 29-Oct-2018 15:53:51

Useless
Member
Registered: 4-Oct-2016
Posts: 83

Re: How to create a "points counter"

Hello again!
In reality I am a bit lost.
I get the part "increment plugit" but how I can display on a dialog intsance the number incremented?
trouble

Last edited by Useless (29-Oct-2018 15:54:35)

Offline

#5 29-Oct-2018 16:42:31

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,331
Website

Re: How to create a "points counter"

Hello,

you add a link :
something -> var score.get value
var score.value -> dialog.set text "Your score is :$1" in link parameter
var score.value -> dialog.show

Offline

#6 29-Oct-2018 16:55:04

Useless
Member
Registered: 4-Oct-2016
Posts: 83

Re: How to create a "points counter"

Something like this?
uno
due

Offline

#7 29-Oct-2018 16:59:38

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,331
Website

Re: How to create a "points counter"

your picture links doesn't work

Offline

#8 29-Oct-2018 17:22:34

Useless
Member
Registered: 4-Oct-2016
Posts: 83

Re: How to create a "points counter"

245wznb.png

Offline

#9 29-Oct-2018 18:20:28

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,331
Website

Re: How to create a "points counter"

Sorry I can't see anything with this ^^
Why do you have 2 var plugITs

Offline

#10 30-Oct-2018 10:13:56

Useless
Member
Registered: 4-Oct-2016
Posts: 83

Re: How to create a "points counter"

The first have assigned value "1" and is collegated to "button, pushed" to "get value".
The second have value "0" and i collegated to the first with "increment".
The second then -> area -> set label

Offline

#11 30-Oct-2018 16:05:03

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,331
Website

Re: How to create a "points counter"

You just need one var initialized to 0
then you increment this var using "1" in the increment link parameter
When needed you get the current value to display the result in dialog box

Offline

#12 4-Nov-2018 20:07:44

Useless
Member
Registered: 4-Oct-2016
Posts: 83

Re: How to create a "points counter"

Ah! You are indeed right! Thank you!

Offline

Board footer

Powered by FluxBB