The Daily Click ::. Forums ::. Klik Coding Help ::. Still having problems with my Smash Brothers fangame.
 

Post Reply  Post Oekaki 
 

Posted By Message

Jebin Zedalu



Registered
  24/03/2007
Points
  22
18th April, 2007 at 12:14:31 -

I'm aware that I have already posted a topic on this game, but people seem to read the first few posts and decide it has already been fixed.

Anyway, the problem is this: Whenever one of the two characters attack, everything is fine and works how it should. However, when both attack at the same time, they are both hit regardless of position. Which attack hits which character is something I'm unsure of. It appears as though the character's own attack hits them, rather than the enemy's.
I currently have Luigi and Sonic in this game. Luigi has all of his B attacks from Super Smash Brothers Melee, and Sonic has not yet been fully coded. This bug occurs with all attacks, though it seems to be most prominent when Luigi uses his Cyclone move (which lasts for 19 frames) and Sonic's "Spin Beam" attack, which sends four whirling blade-like things forward. The attack itself lasts at least 24 frames, but only 4 actually create attack masks.



First, an explanation on how the system works.

When a character is touched by an attack mask, they take damage and are hit away. But only if the attack mask's "Player" value is not the same as the character's Player value, and only if the mask's Player value is not 0.
When a character collides with an attack mask that has a Player value of 0, the mask's Player value is set to the character's Player value. I'm sure this will cause a new bug to arise later into development, but for now I'm just trying to go one step at a time and get the larger bug out of the way first.

Anyway, there are two possible ways that I can think of so far for this bug to be in effect.
1: The characters are affected by attack masks with a Player value of 0 despite the coding.
Or 2: When one attack mask's attributes are changed, ALL of them are changed. This reason seems to have more "symptoms", but I've already checked, re-checked and re-re-checked the code to find out how this would happen. I can't find anything.

Need any further elaboration on the problem? I could copy the attack mask coding to here if needed.

 
All problems can be solved through the use of violence and/or duct tape.

Jebin Zedalu



Registered
  24/03/2007
Points
  22
20th April, 2007 at 11:22:45 -

Does anyone have an idea on what I could do in place of this system, then, since no one seems to have a way to fix it?

 
All problems can be solved through the use of violence and/or duct tape.
   

Post Reply



 



Advertisement

Worth A Click