The Daily Click ::. Forums ::. Klik Coding Help ::. Spread Value problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
19th March, 2010 at 02:38:52 -

You're going to have to post the full source then, because the problem must be with one of your other events.

 
n/a

7Soul



Registered
  12/08/2008
Points
  167
19th March, 2010 at 03:33:58 -

I uploaded it here: http://www.4shared.com/file/244303347/e67991c1/ARadice.html

The code is somewhat messy
You can find the destroy event at Battle Events > Hit Detector Weak
Spread values at line 10 (with all groups closed)
And if you need, enemy sprite positioning is at Enemy Animation > Enemy - Kobold (even if that looks like a hedgehog, but its placeholder)

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
20th March, 2010 at 04:18:39 -

It's crazy complicated, and I don't speak Spanish, so I had some trouble understanding what was going on.
I must admit, I don't know what's wrong with the way you did it, but I do have a work-around which fixes the problem:

+ HP of enemy1 <= 0
+ Pick one of spr_enemy1
-> Destroy enemy1
-> Destroy spr_enemy1

It doesn't actually matter which sprite is destroyed - whichever ones are left over will be properly matched up again the very next frame anyway.

BTW: You don't need to spread a value on every loop of a fastloop. Just do it once before starting the loop. Better still, only do it when you create or destroy an object.

Edited by Sketchy

 
n/a
   

Post Reply



 



Advertisement

Worth A Click