Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mcgooter

Pages: [1]
1
Script / RemoveSprite
« on: 2006-02-23, 04:06:50 PM »
I haven't a clue about code and scripting.  I've tried to read through the docutorial a couple times, yet it all seems foreign and full of gibberish to me.  I just want to be able to remove a sprite after a certain frame number.  Here's what I got.

Code: [Select]
Dim nIdx
   With  ProjectObj.GamePlayer.PlayerSprite.rDef.rLayer
     For nIdx = 0 to .SpriteCount - 1
       If .Sprite(nIdx) Is .Sprite = "Guard1" Then
       .RemoveSprite(nIdx)
     End If
     Next
   End With

Can anyone send some info my way to how I could accomplish this correctly?

Pages: [1]