Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Conflict problem, A strange conflict when playing sound while changing the battler
aylash
post Oct 3 2009, 01:48 PM
Post #1



Group Icon

Group: Member
Posts: 2
Type: Artist
RM Skill: Intermediate




Ok guys, so I was messing around with the standard scripts so as to make some slight changes to the standard battle system. I want to give it a face-lifting and in my changes the characters in the party don't disappear when they die, they just stay there and their graphic changes to reflect that they were defeated.

So, I change the death part in Spriter_Battler like this:

if @battler.damage == nil and @battler.dead?
if @battler.is_a?(Game_Enemy)
$game_system.se_play($data_system.enemy_collapse_se)
collapse
@battler_visible = false

else
$game_system.se_play($data_system.actor_collapse_se)
self.bitmap = RPG::Cache.picture("death" + @battler_name)
end
end

Bold is where I changed the original code. So, with this, the allied actor is still visible and his battler graphic has changed to that of his "death pose" (you need to have a graphic in the pictures folder with the same name of the original battler but starting with death).

The only thing strange that is bugging me is that the sound effect for actor_collapse is all buggy after this change. It simply goes nut and stutters and never stop. Is there any way around this? I'm considering deleting that line if there is no way to fix it, but I would rather fix it since then I can latter have death voice-overs for each character. Anyone can help?
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 03:54 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker