About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
how can i add the damaga screen from bloody masacre to rpg 2.0
Author Message
fhl41 Offline
Member

Post: #1
how can i add the damaga screen from bloody masacre to rpg 2.0
how can i add the damage screen from bloody masacre to rpg 2.0
can someone make this work for rpg 2.0 smile

added the damage image in the folder Gui blushing
***************************************************
added this inside Chr
flt damage_time=0; // for how much time display damage image

added this allso inside Chr void receiveHit
if(alive())damage_time=1;
***************************************************
added this inside Game function
Quote:void PostProcess()
{
if(Players.elms())
{
// draw damage image
Player &plr=Players[0];
if(plr.damage_time>0)Images(UID(1253575821, 1262702589, 75890623, 2429980934))->draw(ColorAlpha(Color(204, 0, 0), plr.damage_time), TRANSPARENT, Rect(-D.w(), -D.h(), D.w(), D.h()));

// if player is near death change the screen to grey
flt near_death=LerpRS(40.0, 0.0, plr.health);
ColorMatrix().setMono().draw(near_death);
}
}
(This post was last modified: 12-03-2016 02:46 PM by fhl41.)
12-03-2016 11:51 AM
Find all posts by this user Quote this message in a reply
fhl41 Offline
Member

Post: #2
RE: how can i add the damaga screen from bloody masacre to rpg 2.0
i got the damage mono screen working near death

only not the blood damage image

added in Game //in void DrawGame()

// 2d
PostProcess(); //ADDED POSTPROCESS MONO IS WORKING

I got everything working

add this in Chr

// update inventory
inv.update(T);
damage_time-=Time.d(); //ADD THIS UNDER inv.update(T);
(This post was last modified: 12-03-2016 04:55 PM by fhl41.)
12-03-2016 04:47 PM
Find all posts by this user Quote this message in a reply
Post Reply