Adding time to the timer when collecting a blue coin.

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

BlueShellTV M
Topic author, Citizen
Citizen
Avatar
BlueShellTV M
Topic author, Citizen
Citizen
Age: 23
Reputation: 0
Posts: 8
Joined: 12 May 2016
YouTube

Post #1by BlueShellTV » 17 Sep 2016, 19:33

Is it possible to add time to the timer by collecting a blue coin with the help of a script? I have absolutely no idea how to code :D
Things I like: The Flash, Physics (Science in general), weird stuff, memes, Mario (obviously), breathing
I'm a bit shy, so don't post much. :S
Check out my project:

ImageImage

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 17 Sep 2016, 19:46

You will have to use the script: lvlTimer(Count) = Value of the timer

1) Add a script called "Plus Time" and an event with the same name
2) In the script type " lvlTimer(Count) = lvlTimer(Count) + X " Where "X" is how much time you want to be added.
3) Get the blue coin and trigger the event through "Death"
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

BlueShellTV M
Topic author, Citizen
Citizen
Avatar
BlueShellTV M
Topic author, Citizen
Citizen
Age: 23
Reputation: 0
Posts: 8
Joined: 12 May 2016
YouTube

Post #3by BlueShellTV » 18 Sep 2016, 22:12

Yoshi021 wrote:You will have to use the script: lvlTimer(Count) = Value of the timer

1) Add a script called "Plus Time" and an event with the same name
2) In the script type " lvlTimer(Count) = lvlTimer(Count) + X " Where "X" is how much time you want to be added.
3) Get the blue coin and trigger the event through "Death"

Thank you! :D
Things I like: The Flash, Physics (Science in general), weird stuff, memes, Mario (obviously), breathing
I'm a bit shy, so don't post much. :S
Check out my project:

ImageImage


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest