drag selection box

Talk about making games.

drag selection box

Postby jimmynewguy » Sun Mar 14, 2010 7:12 pm

Please test this and tell me if there is anything wrong with it/anything you'd like added to it
~selects mulitple actors with the dragging of the mouse or one by clicking
~works all directions (of draging ie topleft to bottomright, topright to bottomleft, ect)

also the code seems messy (maybe im crazy..?) so if anyone knows a better way to draw the box please tell me :)
Attachments
SelectObjects.zip
.zip
(17.11 KiB) Downloaded 84 times
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: drag selection box

Postby Hblade » Sun Mar 14, 2010 10:06 pm

Awesome job :D

If you can, add a dragging feature to ONLY the selected actors :3
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: drag selection box

Postby jimmynewguy » Mon Mar 15, 2010 7:19 pm

Thanks
Hblade wrote:If you can, add a dragging feature to ONLY the selected actors :3

do you mean like all the selected actors can be dragged around? That wouldn't be too dificult actually...maybe. Depends on what you really mean.
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: drag selection box

Postby Hblade » Fri Mar 19, 2010 2:34 pm

Yeah. For example, in windows, or any os really, when you select multiple files you can drag them anywhere you want to
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: drag selection box

Postby Scorpion50o1 » Sat Mar 20, 2010 5:35 am

this would be a great thing for a strategy game.
OMG IM SO BORED <(^^)> (>^^)> (>^^)>
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature.
User avatar
Scorpion50o1
 
Posts: 246
Joined: Fri Apr 17, 2009 1:07 am
Location: TX
Score: 8 Give a positive score

Re: drag selection box

Postby uan » Thu Apr 29, 2010 1:08 pm

very good for a rts strategy game, nice work so far!
uan
 
Posts: 55
Joined: Wed Apr 28, 2010 7:05 am
Score: 1 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest