Count time

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

Bandit
Topic author, Our friend
Our friend
Bandit
Topic author, Our friend
Our friend
Reputation: 21
Posts: 71
Joined: 3 Sep 2016

Post #1by Bandit » 20 Nov 2016, 21:44

In mario games time is counted when passing a goal. You usually earn 50 points per second.
Attachments
Count time.png
Count time.png (5.83 KiB) Viewed 1402 times

Alvespires M
Count
Count
Alvespires M
Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #2by Alvespires » 20 Nov 2016, 22:46

And so?You want to recreate it in smbx?I guess there's no way on incressing score...UNLESS you use a custom score HUD with a score variable,but that will be alot hard.And...I guess,not sure,but I guess variables only go up to 255,so...
Not really up to it.

RetroKrasher
Good citizen
Good citizen
Avatar
RetroKrasher
Good citizen
Good citizen
Reputation: 0
Posts: 20
Joined: 19 Sep 2016

Post #3by RetroKrasher » 20 Nov 2016, 23:07

Bandit wrote:In mario games time is counted when passing a goal. You usually earn 50 points per second.

Catskart did it with a SMB1 HUD, ask to him about this

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

Post #4by Yoshi021 » 21 Nov 2016, 2:39

You can use
lvlTimer(Count) = Value of the timer
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Alvespires M
Count
Count
Alvespires M
Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #5by Alvespires » 21 Nov 2016, 14:31

Yoshi021 wrote:You can use
lvlTimer(Count) = Value of the timer
But I guess he want to incresse score with that,and I guess there's no way without a custom HUD and a variable.
Not really up to it.

Super Mario Player M
Duke
Duke
Avatar
Super Mario Player M
Duke
Duke
Age: 21
Reputation: 29
Posts: 141
Joined: 23 Jun 2016
Location: Planet Earth
Youtube channel URL Tencent QQ

Post #6by Super Mario Player » 26 Nov 2016, 23:29

Use sysval(Score) for the score — it is a writable variable, meaning you can change the value of it.
My current project:
Spoiler
The Tower of Challenges

Languages (for PMs):

Image

YouTube channel:
Image
Image

Alvespires M
Count
Count
Alvespires M
Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #7by Alvespires » 27 Nov 2016, 1:16

Super Mario Player wrote:Use sysval(Score) for the score — it is a writable variable, meaning you can change the value of it.
Yes,I knew that but I'm not sure if you can incresse it...Cause,I tried once do this with sysval coin (Yeah I know that's not how the variable is called,I'm just lazy to finish it) to lower it and it didn't work.
Not really up to it.

Yave Yu M
Count
Count
Avatar
Yave Yu M
Count
Count
Age: 27
Reputation: 50
Posts: 242
Joined: 25 Jan 2016

Post #8by Yave Yu » 27 Nov 2016, 7:03

Code: Select all

Do
    sysval(Score) = sysval(Score) + 50
    lvlTimer(Count) = lvlTimer(Count) - 1
    Call Sleep(1)
Loop Until lvlTimer(Count) < 1

Like my two episodes 'Tiny Hel Adventure' and 'y4 world 2 final'


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest