Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-03-2013, 12:42 AM   #1
Baseband Member
 
Join Date: Jan 2013
Location: Canada
Posts: 69
Default Few things I'd like help with (VB.NET 2010)

I was hoping someone here could help me out with a few things for VB.NET.

Firstly I'd like to know how to detect the mouse position in the form, I'd like to do this so that when I click, the program displays a 1x1 square in that position.

Secondly, I'd like to know how to implement gravity, this is so the 1x1 square falls down after clicking.

Lastly, Id like to know how to check for collisions or if there is another block near the 1x1 block after it finishes falling, like if it hits the ground then checks if there is a block to the left and bottom, if not it moves there, kinda like how water flows (idk if this makes sense :/ )

I'd really appreciate if someone could help me out here, I'm at a loss.
__________________

jaywash is offline   Reply With Quote
Old 06-06-2013, 10:56 AM   #2
Fully Optimized
 
ssc456's Avatar
 
Join Date: Jan 2007
Posts: 4,279
Send a message via MSN to ssc456
Default Re: Few things I'd like help with (VB.NET 2010)

I could be wrong but it sounds like your barking up the wrong tree.

Whilst what you are asking to do is entirely possible in vb.net it sounds like you want some form of game engine.

Moving stuff in .net languages is usually really inefficient as you have to constantly keep posting back to the UI thread which means everything becomes unresponsive during this time, which is not what you want.
__________________
He who has never failed has never attempted anything worth succeeding at.

Dont Eat Animals, Its Not Good For Them And They Dont Like It!
ssc456 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT -5. The time now is 10:07 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0