ArianeSoft - Programming and development for Windows and Windows Mobile :: Forums :: PPL - Pocket Programming Language :: Support
 
<< Previous thread | Next thread >>
SpriteAt, have I mis-understood its use?
Moderators: kornalius, bmanske, PointOfLight
Author Post
Donone
Tue Apr 29 2008, 10:32am
Registered Member #231
Joined: Fri Jan 12 2007, 10:17am
Posts: 626
I have a sprite set at 48,76 and then moving along x axis slowly.
In WM_Timer I have...

sprite$=SpriteAt(176,76,True);
if (sprite$<>Null)
showmessage("yes");
SetSpriteDirection(s$,90,0.1);
end;

It immediately says yes even before moving the sprite and then continuously.
What stupidity have I performed?

You only stop learning when you die.
Sometimes I think I am dead
http://www.don-simmonds.co.uk
Back to top
kornalius
Tue Apr 29 2008, 01:11pm


Registered Member #1
Joined: Wed Apr 19 2006, 08:25pm
Posts: 2783
How big is your sprite? Do you have a background sprite? What sprite handle does it return?

Regards,
Alain Deschenes
President and programmer
ArianeSoft Inc. (http://www.arianesoft.ca)
Back to top
Donone
Tue Apr 29 2008, 01:23pm
Registered Member #231
Joined: Fri Jan 12 2007, 10:17am
Posts: 626
Kornalius, your questions have a way of leading one to the answer, I feel sure you formulate these questions (clues) with deliberate intent (to make the poster do the work).
Thank you,
yes, a background sprite certainly covers the points in question. it is large
yes, I did not check the returned handle
and YES it now works!!!


You only stop learning when you die.
Sometimes I think I am dead
http://www.don-simmonds.co.uk
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System