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 19-Jun-2011 11:04:05

gius
Member
Registered: 5-Jun-2011
Posts: 53

marker and object

Hi!

the screenshot of my game is:
http://kktc.jimdo.com/

I explain my game:
If I click on the object "go" at random is "visible" - "show" an object between "primo" "secondo" "terzo" the others are "not visible".

If I click on the object "reset" all object are not visible.

problem:
if marker "test" is active and visible "show" object "first" happens ....
I can not create this event, how can I solve this problem?

thanks

Offline

#2 20-Jun-2011 10:27:57

Tenshikris
Scol Language & OS3D developer
Registered: 11-Apr-2011
Posts: 20

Re: marker and object

Hi,

You can download an example here : LINK
Push on Enter to change randomly, Push on Space to reset. The marker 1 is selected.
Tell me if that helps you smile

Offline

#3 21-Jun-2011 12:04:52

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

Thanks Tenshikris for your examples! Very interesting!
In my game the random choice between the "operations" part of an object by clicking "GO".
My problem is this:
The result is active with the marker, so if with marker 1 (it is combined with the number four) and is visible operation "3 + 1 =" we will have a positive feedback. I do not know to solve this problem, any ideas?

thanks

Offline

#4 22-Jun-2011 17:43:56

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

Re: marker and object

Hi gius

I think that you will need a var plugIT where you will change the value corresponding to your selected operation.
after that you can test the var value when a marker become visible and know if this is the marker waited ot not.

Offline

#5 23-Jun-2011 11:30:33

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

I thought this procedure:

Scene Random Output Ins Out1 -> Scene Var Inst Increment (Value 1)
Scene ArMarker Inst Found       -> Scene Var Inst Increment (Value 1)
Var Inst Instance (Value 2)
Scene Var Inst Modified            -> Scene Hide Inst Show


It is correct?

Offline

#6 23-Jun-2011 22:19:33

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

Re: marker and object

Hi gius

I made a small example from your test.
I hope this is what's you are trying to do
link

all plugIts are commented, and don't forget to look at the links parameters

Offline

#7 29-Jun-2011 17:03:15

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

Hi arkeon,
Many thanks for your example, really interesting!
In my game the marker showed the object. Not only is the answer.
I tried but it does happen:
after the first time that the condition "if" is true, it works the marker even when  is not visible the operation, why?
I attach the folder with all

http://kktc.jimdo.com/app/download/5198 … 1309362614


many thanks

Offline

#8 29-Jun-2011 17:43:44

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

Re: marker and object

so,

first use only one hide plugIt per object, il will be more simple to manage.

when you hit "GO" hide all operations first and then show the new operation (use a multi output plugIT for ordered event)

you don"t need a hide plugIT per link !, you can hide or show an operation with different links on the same plugIT

Offline

#9 29-Jun-2011 18:50:11

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

I'm sorry arkeon
but I can not understand the solution,
I'm sorry,

you could make a small example?

thanks

Offline

#10 29-Jun-2011 19:03:52

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

Re: marker and object

this is exactly as in the previous example i have made.

maybe you should try an another English translation software if google is not enough efficient.

sorry i don't speak Italian smile

Offline

#11 29-Jun-2011 19:11:56

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

now I've got it!

but does not work anyway. I changed the file.
http://kktc.jimdo.com/app/download/5198 … 1309370930

What's wrong?

regards

Offline

#12 29-Jun-2011 23:53:11

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

Re: marker and object

here your project corrected : link

Offline

#13 30-Jun-2011 19:49:53

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

Thanks arkeon!

Interesting!


scene random  output inst Out 1-> scene if operation set value
scene random  output inst Out 1-> scene output dispatcher inst set position
scene if operation true -> scene output dispatcher inst input

if (object 1 = show)  && (marker 1 = true) 
{
............................
}

a curiosity: you have added
Set Active Room inst
Why?

many thanks!

Offline

#14 30-Jun-2011 21:28:48

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

Re: marker and object

never mind, it must be a mistake

Offline

#15 13-Jul-2011 20:08:41

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

Hi Arkeon, I changed your example:

if you press "1" change the operation, if the operation is "correct" (a demo), we see "correct", but after a while it stopped working, do not see the results!



Something happened to my files?


in this link the folder
http://kktc.jimdo.com/


thanks

Offline

#16 16-Jul-2011 15:20:25

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

I have not explained well:
the results (the numbers 2 - 3 - 4) are seen, but do not follow the markers are still immobile.

It is possible to change this?


in this link the folder
http://kktc.jimdo.com/



thanks

Offline

#17 17-Jul-2011 11:08:19

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: marker and object

I solved the problem.


thanks

Offline

Board footer

Powered by FluxBB