Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


drag sprites


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2008, 11:31 AM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Default drag sprites

I was wondering whether it was possible to code a situation where Sprites could be dragged around the screen with the stylus (at run-time)? There only seems to be a 'click' event for Sprites rather than 'mouse down'. I thought it might be possible to use the 'mouse down' event of the Form, but this is blocked by the GameWindow object.
The alternative to using Sprites is to draw the images directly onto the Form (and then use the Form's 'mouse down' event) but as this will be a lot more complicated than using the Sprite Library I thought I'd ask first!
Reply With Quote
  #2 (permalink)  
Old 03-05-2008, 02:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Another solution will be to use the NoCollisionMouse event and when the user taps on the screen the sprite will move (immediately or with a certain speed) to this point.
Reply With Quote
  #3 (permalink)  
Old 03-05-2008, 03:29 PM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Default

Thanks for your reply Erel, I appreciate that would have the same end result but it is not the effect I am after! I am however making progress in coding the routine without using the Sprite Library.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Sprites and Transparency Drewpeu Questions & Help Needed 1 09-24-2008 07:29 PM
Manage many sprites serge Questions & Help Needed 3 07-31-2008 10:29 AM
Drag controls (name) to the IDE Mr_Gee Basic4ppc Wishlist 2 07-21-2008 09:35 PM
Click and drag during runtime J12345T Questions & Help Needed 1 06-24-2008 10:37 AM
Drag 'n Drop support DavidN Questions & Help Needed 10 08-14-2007 08:48 AM


All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0