16
Ask a Question / Re: Make a projectile do damage to enemy
« on: November 02, 2018, 09:11:48 am »
That was probably it, honestly. However, I have often gotten away with not using the underscore before the attribute name using the same block. Example, my working script for the enemy damage was calculated by subtracting the projectile's ATK attribute from the current HP did not require the use of the underscore. I have seen it require it a lot but never had this issue... just weird is all.
EDIT: Actually, I'm having an issue with the same block doing something else! I can't get the information using the appropriate underscore and everything is right, so it seems. Take a look. Everything shows up as zero unless I manually type in "640" for the first checkpoint, then everything fills in appropriately.
EDIT 2: It seemed to actually be a timing issue. I delayed setting the attribute by .1 seconds and all came up ok. I'll try to keep in mind that not all of the behaviors will spawn completely right at the beginning.
EDIT: Actually, I'm having an issue with the same block doing something else! I can't get the information using the appropriate underscore and everything is right, so it seems. Take a look. Everything shows up as zero unless I manually type in "640" for the first checkpoint, then everything fills in appropriately.
EDIT 2: It seemed to actually be a timing issue. I delayed setting the attribute by .1 seconds and all came up ok. I'll try to keep in mind that not all of the behaviors will spawn completely right at the beginning.