small moving sprites I'm having problems with small moving sprites,, the phase name won't update correctly (fast enough) when it's animating on the game screen
is there some way I could make the cursor update them more effectively and faster ?,, (cause if I have a walk cycle for a sprite the mouse basically registers the whole (square) invisible alpha box around the spite (instead of just the sprite itself), so the game cursor is almost always red -if it's in the area of the sprite (even though the visible part of the sprite is on the other side of the screen ,, and it's doing complex animations so I can't use the movtoloc either,,
maybe I could make the sprite like a moving npc or another character or something,,? (probalby a stupid question, but right now the cursor is going crazy (on and off) at all the wrong places when a sprite is moving around
bigmac- 06-04-2007
I assume that you are not changing phase until AFTER the motion sequence? Something to consider would be to disable the cursor during animation sequences. You can do that with the "setCursorEnable". Or, you can update the sprite's phase name immediately before moving. Keep in mind that you have a "setPhaseAttribute" command available to modify specific properties of a phase without having to update the entire sprite. On that note, you could always set the sprite to ambient (so that it is ignored by the cursor) while it is moving.
Karens- 06-04-2007
oh, I didn't think of that,, it's probably the best approach here (I'm animating a little froggie periodically jumping about) I'll use the ambient setting while it's in motion
great, thanks bigmac
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.