Moving position of Level timer, manual hud addition of world-level?

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

ILikeWoods
Topic author, Duke
Duke
ILikeWoods
Topic author, Duke
Duke
Reputation: 3
Posts: 124
Joined: 24 Jan 2016

Post #1by ILikeWoods » 28 Jan 2016, 13:25

I mean to remember, I once did read about something like lvltimer x y thingy in a comment of a youtube video for 1.4.1 levels, but of course I never found it again.
Image
Even through I designed quite some stuff with 1.3. back then, the additions of 1.4.1 are overwhelming. I also do know, there is a way to script, but unfortunately I am not a programmer, even through with the basic idea I might able to figure out some stuff, which I don`t have here.
Please forgive my ignorance, I have not the slightest idea, if this is a shitload of work of a matter of a few minutes, I really can not tell.

If nobody knows, or it is too complicated I won`t be really dissapointed. At least I can realize my own Mario Land adventure for my best buddy which never was possible before.

KFCMARIO
Good citizen
Good citizen
Avatar
KFCMARIO
Good citizen
Good citizen
Reputation: 21
Posts: 33
Joined: 25 Jan 2016

Post #2by KFCMARIO » 28 Jan 2016, 15:14

ILikeWoods wrote:I mean to remember, I once did read about something like lvltimer x y thingy in a comment of a youtube video for 1.4.1 levels, but of course I never found it again.
Image
Even through I designed quite some stuff with 1.3. back then, the additions of 1.4.1 are overwhelming. I also do know, there is a way to script, but unfortunately I am not a programmer, even through with the basic idea I might able to figure out some stuff, which I don`t have here.
Please forgive my ignorance, I have not the slightest idea, if this is a shitload of work of a matter of a few minutes, I really can not tell.

If nobody knows, or it is too complicated I won`t be really dissapointed. At least I can realize my own Mario Land adventure for my best buddy which never was possible before.

Yeah,it need script.It's not complex actually.

Add a script named "Timer" first(Just a sample,the script name could be any legal string actually),
Write following codes in the script
lvltimer(x) = [The X position you want to set]
lvltimer(y) = [The Y position you want to set]



Then we need to execute it.
Choose an event(typically choose 'Level - Start'),then choose 'Others',and then choose "Timer" in the scripts

ILikeWoods
Topic author, Duke
Duke
ILikeWoods
Topic author, Duke
Duke
Reputation: 3
Posts: 124
Joined: 24 Jan 2016

Post #3by ILikeWoods » 28 Jan 2016, 15:38

Thanks,
lvltimer(x) = 650
lvltimer(y) = 25

seems to work well with the remaining HUD data.

Is there a list of these commands/functions anywhere, since I still would like to write a string/text for each level in the top left corner, but I just don`t have decent example scripts to learn from ...

there should be something like

string('WORLD 1-1', 100, 25) following the known mechanics. Hope, there isn`t MsgBox only ...

Image

This is actually what I would like to let it look, well more or less. The timer is in the right position, the world info however is just photoshopped obviously, if it is not clear what I would like to realize.

The scripting help file is not that helpful as like as I wished it to be...


----------------------------------------------------------------------------------------------
And forgot something about the timer thingy, which is not script related but still:
Count and Interval act quite strange in relation to each other.
From what I think Interval just should be the time between one "time unit" (not calling it seconds^^), but

Count 500, interval 50 act different from the speed as like as Count 900 and interval 50. The speed is just different. So if you set different time counters for the levels, "you" might have problems to find a similar speed in which the timer runs ... not sure if this is a bug.

kitkat F
Marquis
Marquis
Avatar
kitkat F
Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #4by kitkat » 4 Jul 2016, 17:36

I got the timer in the spot, but how did you do the level info?

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

Post #5by Yoshi021 » 4 Jul 2016, 18:02

To put text in a level use:

call txtcreate(id as double, x as double, y as double, sasc as double, easc as double, cdata as double, lnum as double, fontid as double, flag as double, text as string)

Example:
call TxtCreate(1,100,100,32,128,0,16,89,1,"TEXT")
Just change the "100" to move the text.

You also have to have the image and .txt with your level.
Attachments
npc-89.png
npc-89.png (19.15 KiB) Viewed 1315 times
npc-89.txt
(58 Bytes) Downloaded 282 times
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

kitkat F
Marquis
Marquis
Avatar
kitkat F
Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #6by kitkat » 4 Jul 2016, 19:15

Thanks


Return to “TeaScript”