Health Control Trigger

Designed a really awesome, amazing, complicated contraption? Show it off here!

Health Control Trigger

Postby Niicola » Wed Jul 29, 2015 1:44 pm

As it can be seen in this level : Gravity Challenge II
A test level with some explanation. You'll find some comments in the hitboxes trigger window.: show
Code: Select all
23x30~.621aa69~~30;240;872;1;1;0;;text,1,Health+|30;368;872;1;1;0;;text,1,Health-|8;152;736;1;1;0;100,100,100,100,0,0,0,0,100;%3Cfont%20face%3D%22Lucida%20Console%22%3EHEALTH%20CONTROL%20TRIGGER~5;272;864;0;4;0;sleep,30:dialog,1,Health+%20Activated:branch,3,7,a,1:activate,heart1:add,a,a,1:turnon,this:exit:branch,3,12,a,2:activate,heart2:add,a,a,1:turnon,this:exit:branch,3,17,a,3:activate,heart3:add,a,a,1:turnon,this:exit:branch,3,22,a,4:activate,heart4:add,a,a,1:turnon,this:exit:playsound,78,1:dialog,1,No%20heart%20left%21|5;400;864;0;1;0;activate,spike1:sleep,15:stoptrigger,spike1:sleep,1:move,spike1item,352,592,1,0:set,g_spikeX,352:set,g_spikeY,1232:turnon,this~0;64;864;1;0;0~6:heart1;208;920;16;16;0;1;branch,2,3,g_playerX,g_heart1X:move,heart1item,4,0,0,0:add,g_heart1X,g_heart1X,4:branch,1,0,g_playerX,g_heart1X:move,heart1item,-4,0,0,0:sub,g_heart1X,g_heart1X,4:goto,0:c,This%20is%20Heart1X%20Coordinates|6:heart1;208;936;16;16;0;1;branch,1,3,g_playerY,g_heart1Y:move,heart1item,0,-4,0,0:sub,g_heart1Y,g_heart1Y,4:branch,2,0,g_playerY,g_heart1Y:move,heart1item,0,4,0,0:add,g_heart1Y,g_heart1Y,4:goto,0:c,This%20is%20Heart1Y%20Coordinates|6:heart2;248;920;16;16;0;1;branch,2,3,g_playerX,g_heart2X:move,heart2item,4,0,0,0:add,g_heart2X,g_heart2X,4:branch,1,0,g_playerX,g_heart2X:move,heart2item,-4,0,0,0:sub,g_heart2X,g_heart2X,4:goto,0:c,This%20is%20Heart2X%20Coordinates|6:heart2;248;936;16;16;0;1;branch,1,3,g_playerY,g_heart2Y:move,heart2item,0,-4,0,0:sub,g_heart2Y,g_heart2Y,4:branch,2,0,g_playerY,g_heart2Y:move,heart2item,0,4,0,0:add,g_heart2Y,g_heart2Y,4:goto,0:c,This%20is%20Heart2Y%20Coordinates|6:heart3;288;920;16;16;0;1;branch,2,3,g_playerX,g_heart3X:move,heart3item,4,0,0,0:add,g_heart3X,g_heart3X,4:branch,1,0,g_playerX,g_heart3X:move,heart3item,-4,0,0,0:sub,g_heart3X,g_heart3X,4:goto,0:c,This%20is%20Heart3X%20Coordinates|6:heart3;288;936;16;16;0;1;branch,1,3,g_playerY,g_heart3Y:move,heart3item,0,-4,0,0:sub,g_heart3Y,g_heart3Y,4:branch,2,0,g_playerY,g_heart3Y:move,heart3item,0,4,0,0:add,g_heart3Y,g_heart3Y,4:goto,0:c,This%20is%20Heart3Y%20Coordinates|6:heart4;328;920;16;16;0;1;branch,2,3,g_playerX,g_heart4X:move,heart4item,4,0,0,0:add,g_heart4X,g_heart4X,4:branch,1,0,g_playerX,g_heart4X:move,heart4item,-4,0,0,0:sub,g_heart4X,g_heart4X,4:goto,0:c,This%20is%20Heart4X%20Coordinates|6:heart4;328;936;16;16;0;1;branch,1,3,g_playerY,g_heart4Y:move,heart4item,0,-4,0,0:sub,g_heart4Y,g_heart4Y,4:branch,2,0,g_playerY,g_heart4Y:move,heart4item,0,4,0,0:add,g_heart4Y,g_heart4Y,4:goto,0:c,This%20is%20Heart4Y%20Coordinates|45:heart1item;144;592;|45:heart2item;176;592;|45:heart3item;208;592;|46:heart4item;240;592;|6;32;800;64;64;0;1;c,Player%20Coordinates%0D%20:set,g_playerX,64:set,g_playerY,1480:c,Heart1%20Coordinates%0D%20:set,g_heart1X,144:set,g_heart1Y,1232:c,Heart2%20Coordinates%0D%20:set,g_heart2X,176:set,g_heart2Y,1232:c,Heart3%20Coordinates%0D%20:set,g_heart3X,208:set,g_heart3Y,1232:c,Heart4%20Coordinates%0D%20:set,g_heart4X,240:set,g_heart4Y,1232:c,Spike1%20Coordinates%0D%20:set,g_spikeX,352:set,g_spikeY,1232|6:player;-16;856;160;80;1;1;move,player,0,8,0,0:add,g_playerY,g_playerY,8|6:player;-32;760;80;160;1;1;move,player,-8,0,0,0:sub,g_playerX,g_playerX,8:set,g_F,0|6:player;-16;744;160;80;1;1;move,player,0,-8,0,0:sub,g_playerY,g_playerY,8|6:player;80;760;80;160;1;1;move,player,8,0,0,0:add,g_playerX,g_playerX,8:set,g_F,1|6:player;-32;760;72;160;1;1;move,player,-8,0,0,0:sub,g_playerX,g_playerX,8:set,g_F,0|6:player;-32;760;64;160;1;1;move,player,-8,0,0,0:sub,g_playerX,g_playerX,8:set,g_F,0|6:player;-32;760;56;160;1;1;move,player,-8,0,0,0:sub,g_playerX,g_playerX,8:set,g_F,0|6:player;-32;760;48;160;1;1;move,player,-8,0,0,0:sub,g_playerX,g_playerX,8:set,g_F,0|6:player;88;760;72;160;1;1;move,player,8,0,0,0:add,g_playerX,g_playerX,8:set,g_F,1|6:player;96;760;64;160;1;1;move,player,8,0,0,0:add,g_playerX,g_playerX,8:set,g_F,1|6:player;104;760;56;160;1;1;move,player,8,0,0,0:add,g_playerX,g_playerX,8:set,g_F,1|6:player;112;760;48;160;1;1;move,player,8,0,0,0:add,g_playerX,g_playerX,8:set,g_F,1|6:player;-16;744;160;72;1;1;move,player,0,-8,0,0:sub,g_playerY,g_playerY,8|6:player;-16;744;160;64;1;1;move,player,0,-8,0,0:sub,g_playerY,g_playerY,8|6:player;-16;744;160;56;1;1;move,player,0,-8,0,0:sub,g_playerY,g_playerY,8|6:player;-16;744;160;48;1;1;move,player,0,-8,0,0:sub,g_playerY,g_playerY,8|6:player;-16;864;160;72;1;1;move,player,0,8,0,0:add,g_playerY,g_playerY,8|6:player;-16;872;160;64;1;1;move,player,0,8,0,0:add,g_playerY,g_playerY,8|6:player;-16;880;160;56;1;1;move,player,0,8,0,0:add,g_playerY,g_playerY,8|6:player;-16;888;160;48;1;1;move,player,0,8,0,0:add,g_playerY,g_playerY,8|7:spike1item;352;592;;11;2;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;4;64;5;0;0;1000;3;0;1;1;;3|6:spike1;368;920;16;16;0;1;branch,2,3,g_playerX,g_spikeX:move,spike1item,4,0,0,0:add,g_spikeX,g_spikeX,4:branch,1,0,g_playerX,g_spikeX:move,spike1item,-4,0,0,0:sub,g_spikeX,g_spikeX,4:goto,0:c,This%20is%20the%20spikeX%20Coordinates|6:spike1;368;936;16;16;0;1;branch,1,3,g_playerY,g_spikeY:move,spike1item,0,-4,0,0:sub,g_spikeY,g_spikeY,4:branch,2,0,g_playerY,g_spikeY:move,spike1item,0,4,0,0:add,g_spikeY,g_spikeY,4:goto,0:c,This%20is%20the%20spikeY%20Coordinates|615:player;64;840|8;160;880;1;1;0;100,100,100,100,0,0,0,0,100;%3Cfont%20face%3D%22Lucida%20Console%22%20size%3D%2212%22%3EThese%20hitboxes%20are%20the%20main%20system.%0DActivate%20one%20of%20them%20and%20a%20heart%28or%20a%20spike%29%0Dwill%20get%20to%20the%20player.|604;424;576;1;1;150;100,100,100,100,0,0,0,0,100;0|8;408;544;1;1;0;100,100,100,100,0,0,0,0,100;%3Cfont%20face%3D%22Lucida%20Console%22%20size%3D%2212%22%3EBetter%20if%20invisible|8;56;520;1;1;0;100,100,100,100,0,0,0,0,100;%3Cfont%20face%3D%22Lucida%20Console%22%20size%3D%2212%22%3EThese%20are%20the%20items%20used.%0DAs%20long%20as%20it%27s%20not%20separated%20by%20a%20transition%0Dthey%20can%20be%20anywhere%20from%20the%20player.%0DJust%20be%20sure%20to%20write%20correctly%20their%20coordinates|604;40;752;4;0.5;90;100,100,100,100,0,0,0,0,100;0|8;-88;664;1;1;0;100,100,100,100,0,0,0,0,100;%3Cfont%20face%3D%22Lucida%20Console%22%20size%3D%2212%22%3EIn%20this%20hitbox%2C%20write%20down%0Dthe%20player%20and%20the%20items%20coordinates%20in%20order%0Dfor%20the%20system%20to%20work%20properly.~Health%20Control%20Trigger~Niicola~1~1;0;0~1~16;0~0;0;0~1438177354~0.5~0,0,0,0,0,0,0,0,0,0,0,0

These items will track you. Of course, if you want to use it in your levels, you're not supposed to make the spike visible. It doesn't require to modify the Player Coordinate Detector which is the main difference with this Poison Effect & Cure. I find it really more simple and practical.

Credit to AwesomeJRFD for his amazing Player Coordinates Detection :D
"There is no good or evil, only Akuma."
~ Akuma the raging Demon


Follow me in The Topic of "Coming Soon" Levels/Projects.
First page have been updated to make it look more professional, check it out!
Last update 02/07/16
User avatar
Niicola
 
Posts: 179
Joined: Sun Sep 07, 2014 3:26 pm
Location: /Not Found/

Return to Trigger creations

Who is online

Users browsing this forum: No registered users and 1 guest

cron