SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Editing (https://mb.srb2.org/forumdisplay.php?f=54)
-   -   Lat' does bullshit~ (https://mb.srb2.org/showthread.php?t=40265)

"Lat'" 02-16-2015 05:52 PM

Lat' does bullshit~
 
Remember that "a little question" thread?
Here's the result of my experiment with it.

1: An HP bar (finally something interresting "from me", because I'd say I got some help with it ^^')
it's easy to understand: Rings = HP. Hit = -10 HP. If hit and less than 10 HP = dead.
http://img11.hostingpics.net/pics/360629srb20009.gif


2: Tac- I mean a "spin" that drains rings, and that works for players that don't have CA2_SPIN. (As simple as giving CA2_SPIN for a tic, doing a spin, and getting back to CA2_NONE)
http://img11.hostingpics.net/pics/215472srb20008.gif

3: Without forgetting to introduce my lovely DUMBPLACEHOLDER. Everything is in its name. It has sprites ripped straight from the internet to remind me what they're supposed to be, so I recorded in firstperson because they are ugly. Also they're going to stay for a VERY LONG (forever in fact) while. (Everyone who saw my catastrophes on the post/art pics thread will know why :P)

Xkower8181 02-16-2015 06:00 PM

Wow that's great this could make SRB2's Match more like Team Fortress 2 just add hats and it's done! XD
But what actually is it?
Okay, stupid question and jokes aside but this just amazing!

"Lat'" 02-16-2015 06:19 PM

TF2? 50 HPs?
But what IS THIS now? Well you can find out by finding from where the HP graphics were actually taken from, or if I decide to show you those ugly sprites, or you can even look at my ... oops almost told it ^^

Xkower8181 02-16-2015 08:55 PM

I know it's some Pokemon because of that Tac thing you typed ;D

TheDoctor 02-16-2015 08:58 PM

That health bar looks very similar to the pokemon mystery dungeon health bars

Never will forget that look of those games. Great games indeed.

This means if you ever do release it, it could go well with a sprite rip I made some time ago

"Lat'" 02-16-2015 09:29 PM

Shit I got spotted.Anyway I'm affraid that original PMD sprites won't fit SRB2's camera. I'd have to make the camera with a top down angle, I'm affraid that this would rip the concept of the upcoming TopDown mod, and I don't have the required lua skills to even reproduce PMD's movement mechanics.


However I have a little idea of what I might turn all of this into, and I'll also reveal the identity of DUMBPLACEHOLDER soon.

EDIT: Also that Pikachu X)

Larztard 02-16-2015 10:35 PM

Will there be hunger?

"Lat'" 02-17-2015 07:03 AM

I told ya I really sucked with Lua, how could I even set up an hunger system (even if I'd like to :< ), but the HP bar now supports "overheal", even if it lasts very short even with 500 HPs (I spammed a move too so...) it will endure any hit without you to lose any real HP. Oh and also the Moo- I mean a nuke that kills nasty robots.
http://giant.gfycat.com/PhysicalGleefulCheetah.gif

Yup, the "spin" and that "nuke" both drain HPs (That's strange huh.)
Sure, I'm probably not gonna let the jump happen, or if it's here, it will probably not damage enemies, to make those two moves have a reason to exist.

Also not gargoyle-based nuke :P

semi.colon 02-17-2015 10:23 AM

Would this work as a hunger system?
Quote:

addHook("MobjSpawn", function(player)
player.hunger = 10
player.hungertimer = 0
player.healthtimer = 0
player.lasthealth = 0
end, MT_PLAYER)

addHook("MobjThinker", function(player)
if (player.hunger > 0)
and (player.hungertimer >= TICRATE)
player.hunger = $ - 1
player.hungertimer = 0
end
player.hungertimer = $ + 1

if (player.hunger <= 0)
and (player.health > 1)
and (player.healthtimer >= TICRATE)
player.health = $ - 1
player.healthtimer = 0
end
player.healthtimer = $ + 1
end, MT_PLAYER)

addHook("ThinkFrame", function()
for player in players.iterate do
player.health = player.mo.health --update HUD

if (player.mo.health > player.mo.lasthealth) --test method to gain hunger
player.mo.hunger = $ + player.mo.health - player.mo.lasthealth
end
player.mo.lasthealth = player.mo.health
end
end)
Maybe use the TouchSpecial hook to get hunger when touching a custom object?

"Lat'" 02-17-2015 12:15 PM

Well, I guess this hunger script will go surprisingly well with what I intended to do.
Sweet~
http://giant.gfycat.com/CookedLeftHoopoe.gif

Yup, an Insta-Regen and an Invincibility candy. They can totally interact with Hunger actually :P

EDIT: Also I should probably add a HUD for the hunger because it's confusing to start losing HPs for no reasons X)
EDIT2: With the way that the test method to gain hunger works, the InstaRegen candy is OP.

---------- Post added at 01:15 PM ---------- Previous post was at 12:18 PM ----------

And sorry for double post, but before I have to go, I added a little HUNGER counter
(ikr, it's really ugly, buy I will improve it this evening because I have to go)

http://fat.gfycat.com/DefiantAllBlac...anelkhound.gif

(See, I told ya instaregen was op)

Jay 02-17-2015 07:00 PM

Wow, this looks interesting! I made a health script like this around a week or two ago for testing, and even though mine has fancy graphics and stuff, I actually think yours looks better. Perhaps because yours isn't as huge as mine and actually fits SRB2's style a lot more.

Do you plan to include leveling up or anything of the sort? If so, you could use the player's score for EXP.

Another thing, too: I think you might be able to make the slash beside the health bar red (to match TheDoctor's screenshot) by replacing
Code:

player.health.."/50"
with
Code:

player.health.."\x85/\x8050"
or something similar. To put it simply, you'd have to add a red color code (\x85) before the slash and a white one (\x80) after it. I can't say for sure as I haven't done that, but I'm fairly certain it'll work.

"Lat'" 02-17-2015 07:26 PM

I'm not planning any level up system, but I can eventually start to work on one if I have some time.
Also I tried what you told me to do with the string color, it works but for some reasons, there's a "P" coming out of nowhere. ( HP xx / P 50 )

Anyway, as semi.colon said that I needed objects to really interact with Hunger...

http://fat.gfycat.com/BlankCourteousHammerheadshark.gif

That apple is sure filling, but I didn't remember I told it to fill more than 20 hunger points (I am so pro at Lua) But at least it works...

EDIT: Also as for now, moves are draining Hunger instead of HPs, it makes much more sense.
EDIT2: Concerning the red "/" I can eventually just insert it as a regular HUD, it'll make the same thing.

VirtualBlitz546 02-17-2015 08:12 PM

Watching your work makes me think I will never be so experienced in Lua :v I always get guided by other people's codes so I can get what I want to be done.

By the way, I have a random question here. How the f*** do you say "volcan(spanish word)" in english? In spanish, the name of it is said "Volcán" and just that. But I get confused with the english word, what do I have to say? Volcan or volcano?

Goldenhog 02-17-2015 08:24 PM

Quote:

By the way, I have a random question here. How the f*** do you say "volcan(spanish word)" in english? In spanish, the name of it is said "Volcán" and just that. But I get confused with the english word, what do I have to say? Volcan or volcano?
It's "Volcano". You know, like Red Volcano Zone? :P

On-topic: So, is this supposed to be a Minecraft mod for SRB2?

Katwover 02-17-2015 08:25 PM

Quote:

Originally Posted by VirtualBlitz546 (Post 765287)
By the way, I have a random question here. How the f*** do you say "volcan(spanish word)" in english? In spanish, the name of it is said "Volcán" and just that. But I get confused with the english word, what do I have to say? Volcan or volcano?

...uhh... according to Bing Translator, "volcán" is "volcano" in English. I should probably know this by now, as I'm in a Spanish class myself. I only diverged from the topic to help you in that case, so... don't ask off-topic questions again, I guess?

EDIT: ninja'd once more

"Lat'" 02-17-2015 08:44 PM

Well Virtual, do you even think I wrote all this shit? I just took everything from existing WADs and modified to suit my needs.The HUD is a modified version of the buffgauge (unlikely), the way used to fill hunger was ripped straight from Quickman, as the one used to take damage too, without forgetting the Hunger code someone made for me without I even ask to.


Concerning your random question...
1: WTF is it doing there?
2: It's Volcano. (Volcan is French.)

---------- Post added at 09:44 PM ---------- Previous post was at 09:41 PM ----------

Quote:

Originally Posted by Goldenhog (Post 765288)
It's "Volcano". You know, like Red Volcano Zone? :P

On-topic: So, is this supposed to be a Minecraft mod for SRB2?

Double post srry.


DUMBPLACEHOLDER = Steve... with an HP bar... and Tackle? Weird.

"Lat'" 02-18-2015 01:10 PM

Triple post, sorry again.
Anyway here is more food related content, yup, apples, a thin one, a big one and a golden one. I also added two others candies that fill different ammount of health... I guess I can start working on levels, now.

http://giant.gfycat.com/CanineLiquidChinchilla.gif

Another thing, if your hunger goes under 20, the message "Getting hungry..." prints into the console, "Getting dizzy from hunger..." prints if it goes below 10.

01000100011101010110110101100010010100000110110001 10000101100011011001010110100001101111011011000110 01000110010101110010001000000110100101110011001000 00010100110111100101101100011101100110010101101111 01101110001011000010000001101001011101000010000001 11011101100001011100110010000001101111011000100111 01100110100101101111011101010111001100100000011011 00011011110110110000101110001000000100001001110101 01110100001000000110010001101111011011100010011101 11010000100000011101000110010101101100011011000010 00000110100101110100001000000110111101101110001000 00011101000110100001100101001000000111010001101000 01110010011001010110000101100100001000000011101001 001111

Arcade Gamer 02-18-2015 02:43 PM

Keep in mind that the MB doesn't allow sprite rips. In the final product all of the sprite rips have to be changed.

MascaraSnake 02-18-2015 02:49 PM

We allow ripped sprites. What we don't allow are submissions (e.g. custom characters) that consist of nothing but ripped sprites.

"Lat'" 02-18-2015 02:56 PM

Well I actually have some scripts around there, so it should be allowed if it comes down to submissions one day.


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

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