Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Most Practical way of setting multiple limits in multiple forms.

$
0
0
Hello,

Ive been making the basic structure of my RPG game in Visual Basic 2010, Ive got almost everything i need to start the game itself whit not much effort.

But right now, i want to know what is the most practial way to set map limits in the forms.

I did this in early games by setting the "map" as the form background, then placing transparent pictureboxes boxes over the things i didnt want the player to go walking on (Ex. trees, houses.),then, i would create Rectangles whit equal dimentions as the pictureboxes (I used transparent pictureboxes so i could set the limits visually instead of editing the rectangles blindly)then, i would put that if the rectangle that was equal to the player intersected whit the rectangle that was the wall, for example, it wouldnt walk.

But now i think this method could be simplified, i just need a heads up in the right direction

Thank you all

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>