Hi!
I've got some problems managing static TKBolt sprites to achieve what the dynamic ones were doing. Can someone help me out? For dynamic sprites I used to do this:
(simplified version)
If throwing TKBolt
SpawnTKBolt
PushTKBolt in right direction
EndIf
Now, I'm managing a buffer of 3 static TKBolts (should be enough)
It looks like this:
If throwing TKBolt
Verify which one is the next TKBolt to throw
Select the proper TKBolt (With the SelectTargetSprite rule)
SetTargetSpriteParameter (the X location)
SetTargetSpriteParameter (the Y location)
Activate the TKBolt Sprite <--- There's the problem!
ThrowTheTKBolt in the right direction
EndIf
Oh, I forgot to mention that these rules are included in Kain's sprite. I don't want to create a plan for each map to manage the TKBolts. If the code was included in Kain's sprite, it would be much simpler.
But there is no function to activate a sprite that was selected by the SelectTargetSprite rule...
As you can see, I never even got to testing this, because it is obvious it won't work without activating the TKBolt sprite.
I guess I will create a function, based on SetTargetParameter to activate a sprite... Unless there is a better approach? Is my logic OK? Oh, and all of this started on the fact that I thing that SelectTargetSprite and SetTargetParameter actually work on a deactivated sprite... Is it the case?
Thanks a lot!
