Page 2 of 17
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:10 pm
by Skuggasveinn
Part 6 is up at
http://youtu.be/dxonfsoRYOY Bossfight
Anyways the trick to bossfight is to link the monster to the bossfight entity.
Code: Select all
function startBrothersBossFight()
boss_fight_brothers.bossfight:addMonster(skeleton_commander_1.monster) -- here we add the skeleton_commander_1 to the fight
boss_fight_brothers.bossfight:addMonster(skeleton_commander_2.monster) -- here we add the second commander to the fight, so the health bar for the bossfight will be both there total health.
boss_fight_brothers.bossfight:activate() -- here we active the fight .
end
function startMedusaBossFight()
boss_fight_medusa.bossfight:addMonster(medusa_1.monster)
boss_fight_medusa.bossfight:activate()
end
-- EDIT seems to show up now in full HD
Skuggasveinn.
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:19 pm
by JohnWordsworth
Just had a chance to watch these. Very cool to see the features in action
.
I might ask you to do a couple on the GMT in a few weeks time... :p
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:24 pm
by SnowyOwl47
Skuggasveinn wrote:Part 6 is up at
http://youtu.be/dxonfsoRYOY Bossfight
Anyways the trick to bossfight is to link the monster to the bossfight entity.
Code: Select all
function startBrothersBossFight()
boss_fight_brothers.bossfight:addMonster(skeleton_commander_1.monster) -- here we add the skeleton_commander_1 to the fight
boss_fight_brothers.bossfight:addMonster(skeleton_commander_2.monster) -- here we add the second commander to the fight, so the health bar for the bossfight will be both there total health.
boss_fight_brothers.bossfight:activate() -- here we active the fight .
end
function startMedusaBossFight()
boss_fight_medusa.bossfight:addMonster(medusa_1.monster)
boss_fight_medusa.bossfight:activate()
end
-- EDIT seems to show up now in full HD
Skuggasveinn.
Funny I just figured out how to do bosses and posted it and a little while later this new video shows up xD
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:32 pm
by Skuggasveinn
SnowyOwl47 wrote:Funny I just figured out how to do bosses and posted it and a little while later this new video shows up xD
yeah I saw
, this video had been up on youtube some time ago if it wasn't for some youtube durping, I had to create this tutorial a couple of times before it showed up in more the 240p.
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:33 pm
by cromcrom
Yes, I saw your 240 version at least 12 hours ago ^^
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:34 pm
by SnowyOwl47
Skuggasveinn wrote:SnowyOwl47 wrote:Funny I just figured out how to do bosses and posted it and a little while later this new video shows up xD
yeah I saw
, this video had been up on youtube some time ago if it wasn't for some youtube durping, I had to create this tutorial a couple of times before it showed up in more the 240p.
Now I hate youtube!
It stopped me from being able to make bosses for a while
This is something I made before I saw this video:
Code: Select all
boss1timer.timer:stop()
message = "Rubert: Whats going on!?"
function bossmode()
party.party:shakeCamera(1, 1)
hudPrint("You Hear a small explosion.")
spawn("forest_oak_cluster",2,2,20,0,0,"cluster_1")
spawn("forest_oak_cluster",2,3,20,0,0,"cluster_2")
hudPrint("The Area behind you closes off.")
hudPrint(message)
boss1timer.timer:start()
end
function bossstart()
hudPrint("Rose: Guess we better get started then.")
bossfight1.bossfight:activate()
spawn("zarchton",2,8,14,1,0,"boss1")
boss1.monster:setHealth(150)
boss1.monster:setLevel(2)
note = spawn("note")
boss1.monster:addItem(note.item)
note.scrollitem:setScrollText("You Better come back or this will be your end.\n\n Slave Master")
bossfight1.bossfight:addMonster(boss1.monster)
script_entity_2.script.bossdead()
end
function bossdead()
if boss1.monster:getHealth() == 0 then
bossfight1.bossfight:deactivate()
end
end
thats just one boss
Re: Editor Tutorials on YouTube
Posted: Mon Oct 20, 2014 10:40 pm
by NutJob
Good grief! ~slaps forehead~
Anyways, thanks for the HD version. ~Matt
Re: Editor Tutorials on YouTube
Posted: Tue Oct 21, 2014 5:25 pm
by Ixnatifual
Very good tutorials, Skugga. Thank you for making these.
Re: Editor Tutorials on YouTube
Posted: Tue Oct 21, 2014 9:35 pm
by Sorez
About the boss battle, my boss has 1000 health, but it only shows health up to 1/10th of the bar. Any solutions?
Re: Editor Tutorials on YouTube
Posted: Tue Oct 21, 2014 11:10 pm
by Skuggasveinn
This is my best guess
since we are just guessing at this point.
setHealth is modifying the health of the monster, not the base health it has defined in the assets.
so if I do this
Code: Select all
function startBrothersBossFight()
boss_fight_brothers.bossfight:addMonster(skeleton_commander_1.monster)
skeleton_commander_1.monster:setHealth(15) - here I change the health to 15
boss_fight_brothers.bossfight:activate()
end
the bar will only fill up a to about 1/20 of they way, since the bossfight entity takes the base health of the monster, then we are setting the health lower from the base, so he comes into the fight like he is already hurt.
if I do this
Code: Select all
function startBrothersBossFight()
boss_fight_brothers.bossfight:addMonster(skeleton_commander_1.monster)
skeleton_commander_1.monster:setHealth(3000) - here I change the health to 3000
boss_fight_brothers.bossfight:activate()
end
the red line of the boss fight goes off screen.
The only way I think this will work correctly is if we define a new skeleton_commander that has his base health set to what we want, and not change the health of an existing monster.
If you are getting another result Sorez it would be nice to see your code.
Skuggasveinn.