Page 1 of 1

Script on Worldmap ?

PostPosted: 07 Jul 2018, 10:27
by Oliver_Buo
Hello everybody
How can I create a script for the world map?
See my video:

https://www.youtube.com/watch?v=SLXxK-O ... e=youtu.be

I made two tilmaps and created a script with a special tile.
I want s1 to dissolve.
That does not work songs. What am I doing wrong ? ;)

Re: Script on Worldmap ?

PostPosted: 07 Jul 2018, 12:10
by manuel
To dissolve tilemap S1:
{l Code}: {l Select All Code}
S1.fade(0, <time it should take in seconds>)


To make s2 visible:
{l Code}: {l Select All Code}
s2.fade(1, <time it should take in seconds>)


If a tilemap doesn't fade completely to 0, it will still stay solid (if solid is set to true).

Be careful as you named S1 with a capitol "S" and s2 with a small "s".

Re: Script on Worldmap ?

PostPosted: 07 Jul 2018, 14:21
by Oliver_Buo
thanks ....but still not working.

Re: Script on Worldmap ?

PostPosted: 07 Jul 2018, 21:50
by manuel
Hmm, tested it. Seems like you have to set direction ("Richtung") to a value other then "none" ("keiner") to trigger the object.

Re: Script on Worldmap ?

PostPosted: 09 Jul 2018, 17:44
by Oliver_Buo
Yes u are right. I have to set the direction. then it works. Direction means if i put "South" menan, it chanche when i come from south. ...thanks