SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Lua (https://mb.srb2.org/forumdisplay.php?f=105)
-   -   Time Dominator 1st energy meter (https://mb.srb2.org/showthread.php?t=42430)

Monster psychic cat 03-01-2017 11:30 PM

Time Dominator 1st energy meter
 
3 Attachment(s)
http://i.imgur.com/b8dYeYo.png
The player's energy decreases as time passes. To stay alive, collect rings (includes ring boxes) or touch a starpost.

FuriousFox 03-04-2017 01:37 AM

Welcome to Releases!

TailsFan99 03-05-2017 06:19 AM

I like how you changed the level complete screen. How did you do that?

Bryce Hego 03-05-2017 09:34 AM

It's the super sonic challenge without super sonic. Nice, i really like it

My complaints: Energy meter shows up in nights stages, Ring boxes should give you 10 rings worth of energy

Monster psychic cat 03-05-2017 09:37 PM

Quote:

Originally Posted by TailsFan99 (Post 790033)
I like how you changed the level complete screen. How did you do that?

Before the exit counter variable goes to zero, call the new level complete screen code, which forces the counter to freeze.

PHP Code:

if player.exiting == 10
   
[...]
   
intermission true
   
[...]
end

if intermission == true
   
[...]
   
player.exiting = $1    // this is decremented every frame. increment it to "freeze" it.
   
[...] 

Quote:

Originally Posted by Bryce Hego (Post 790038)
It's the super sonic challenge without super sonic. Nice, i really like it

My complaints: Energy meter shows up in nights stages, Ring boxes should give you 10 rings worth of energy

Thanks. The NiGHTS bug has been fixed and... I thought giving +10 energy for every ring box would be cheating (as the player's start energy is 50). Maybe 1/4 of the max energy?

Bryce Hego 03-12-2017 11:30 PM

Quote:

Originally Posted by Monster psychic cat (Post 790059)
Before the exit counter variable goes to zero, call the new level complete screen code, which forces the counter to freeze.

PHP Code:

if player.exiting == 10
   
[...]
   
intermission true
   
[...]
end

if intermission == true
   
[...]
   
player.exiting = $1    // this is decremented every frame. increment it to "freeze" it.
   
[...] 

Thanks. The NiGHTS bug has been fixed and... I thought giving +10 energy for every ring box would be cheating (as the player's start energy is 50). Maybe 1/4 of the max energy?

That's fine, thinking about it that would be cheap but it would make sense if you got something from it, Maybe not 1/4 but somewhere closer to 1/5

Sapheros 03-13-2017 07:24 AM

Quote:

Originally Posted by Monster psychic cat (Post 790059)
Before the exit counter variable goes to zero, call the new level complete screen code, which forces the counter to freeze.

PHP Code:

if player.exiting == 10
   
[...]
   
intermission true
   
[...]
end

if intermission == true
   
[...]
   
player.exiting = $1    // this is decremented every frame. increment it to "freeze" it.
   
[...] 


As delighted as I would go out of my way to steal use the intermission script outside of the wad itself, it just seems kinda difficult to do without the script just refusing to work in general, this script is too amazing and sacred to lock inside of a special mod. May I suggest on it becoming it's own lua script on it's own either as it's own release or a separate file inside the .zip?


All times are GMT. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.