Script on Worldmap ?

Script on Worldmap ?

Postby Oliver_Buo » 07 Jul 2018, 10:27

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 ? ;)
User avatar
Oliver_Buo
 
Posts: 286
Joined: 27 Nov 2016, 17:51

Re: Script on Worldmap ?

Postby manuel » 07 Jul 2018, 12:10

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".
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: Script on Worldmap ?

Postby Oliver_Buo » 07 Jul 2018, 14:21

thanks ....but still not working.
Attachments
004 s2.JPG
04
003 s1.JPG
03
002.JPG
02
001 map.JPG
map 1
User avatar
Oliver_Buo
 
Posts: 286
Joined: 27 Nov 2016, 17:51

Re: Script on Worldmap ?

Postby manuel » 07 Jul 2018, 21:50

Hmm, tested it. Seems like you have to set direction ("Richtung") to a value other then "none" ("keiner") to trigger the object.
manuel
 
Posts: 190
Joined: 19 Sep 2017, 09:03

Re: Script on Worldmap ?

Postby Oliver_Buo » 09 Jul 2018, 17:44

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
User avatar
Oliver_Buo
 
Posts: 286
Joined: 27 Nov 2016, 17:51

Who is online

Users browsing this forum: No registered users and 1 guest

cron