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 |
| ||
Registered Member #231 Joined: Fri Jan 12 2007, 10:17amPosts: 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 |
| ||
Registered Member #1 Joined: Wed Apr 19 2006, 08:25pmPosts: 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 |
| ||
Registered Member #231 Joined: Fri Jan 12 2007, 10:17amPosts: 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 | | ||