Scripting bug

Scripting bug

Postby Laksh » 20 Aug 2021, 07:26

I am not able do Scripting .devs help me please
I make my supertux worlds in nighty builds of supertux
any world without nighty builds of supertux is like it lack details for me
(note: I have a github account)
User avatar
Laksh
 
Posts: 80
Joined: 09 Aug 2021, 09:09

Re: Scripting bug

Postby SuperTuxFan SalomonD » 20 Aug 2021, 11:43

You are not able scripting?
Probably is not an existing script but if you want, go visit this SuperTux Scripting Reference Page: http://supertux.lethargik.org/wiki/Scripting_reference

I hope this will help you :)
SuperTux Level designer & Player
User avatar
SuperTuxFan SalomonD
 
Posts: 67
Joined: 18 Jan 2021, 19:14
Location: Earth

Re: Scripting bug

Postby Laksh » 20 Aug 2021, 13:27

thanks SuperTuxFan SalomonD :D
I make my supertux worlds in nighty builds of supertux
any world without nighty builds of supertux is like it lack details for me
(note: I have a github account)
User avatar
Laksh
 
Posts: 80
Joined: 09 Aug 2021, 09:09

Re: Scripting bug

Postby Laksh » 21 Aug 2021, 11:57

how to create a text scroller level??
cómo para crear un texto desplazamiento nivel??
I make my supertux worlds in nighty builds of supertux
any world without nighty builds of supertux is like it lack details for me
(note: I have a github account)
User avatar
Laksh
 
Posts: 80
Joined: 09 Aug 2021, 09:09

Re: Scripting bug

Postby SuperTuxFan SalomonD » 21 Aug 2021, 18:17

Try this:

Text.set_text("Welcome to my world :)");
Text.fade_in(1);
wait(4);
Text.fade_out(1);

That is fading text but if you want not fading try this:

Text.set_text("Welcome to my world :)");
Text.set_visible(true);
wait(4);
Text.set_visible(false);

I hope this helps :)
SuperTux Level designer & Player
User avatar
SuperTuxFan SalomonD
 
Posts: 67
Joined: 18 Jan 2021, 19:14
Location: Earth

Re: Scripting bug

Postby LECZ » 21 Aug 2021, 18:38

Laksh {l Wrote}:how to create a text scroller level??
cómo para crear un texto desplazamiento nivel??

You mean a level like Forest-credits from ST and the elementals gemes
User avatar
LECZ
 
Posts: 92
Joined: 11 Jun 2021, 21:13

Re: Scripting bug

Postby Laksh » 27 Aug 2021, 16:34

LECZ {l Wrote}:
Laksh {l Wrote}:how to create a text scroller level??
cómo para crear un texto desplazamiento nivel??

You mean a level like Forest-credits from ST and the elementals gemes

yes
I make my supertux worlds in nighty builds of supertux
any world without nighty builds of supertux is like it lack details for me
(note: I have a github account)
User avatar
Laksh
 
Posts: 80
Joined: 09 Aug 2021, 09:09

Re: Scripting bug

Postby LECZ » 27 Aug 2021, 17:21

Laksh {l Wrote}:
LECZ {l Wrote}:
Laksh {l Wrote}:how to create a text scroller level??
cómo para crear un texto desplazamiento nivel??

You mean a level like Forest-credits from ST and the elementals gemes

yes


First you have to create a .stxt file in your text editor
then edit it as done with scripts later

paste this little script in your level and it is done:
(textscroller
(file "/levels/SuperTux_and_the_elemental_gems/Forest_cave/Forest-Credits.stxt")
User avatar
LECZ
 
Posts: 92
Joined: 11 Jun 2021, 21:13

Re: Scripting bug

Postby Laksh » 28 Aug 2021, 07:51

LECZ {l Wrote}:
Laksh {l Wrote}:
LECZ {l Wrote}:
Laksh {l Wrote}:how to create a text scroller level??
cómo para crear un texto desplazamiento nivel??

You mean a level like Forest-credits from ST and the elementals gemes

yes


First you have to create a .stxt file in your text editor
then edit it as done with scripts later

paste this little script in your level and it is done:
(textscroller
(file "/levels/SuperTux_and_the_elemental_gems/Forest_cave/Forest-Credits.stxt")

It worked
I make my supertux worlds in nighty builds of supertux
any world without nighty builds of supertux is like it lack details for me
(note: I have a github account)
User avatar
Laksh
 
Posts: 80
Joined: 09 Aug 2021, 09:09

Who is online

Users browsing this forum: No registered users and 1 guest