My Visual Basic Game
Uploader Comments (Aardaerimus)
All Comments (28)
-
@Aardaerimus I feel u man. I could use one of those pre-made engines or softwares, but I'd rather spend the time understanding the code and making things just the way I want. The accomplishment feeling in the end is worth it :)
-
@Aardaerimus Wouldn't just using object1.bounds.Intersectswith(
object2.bounds) work just as well for collision detection? -
@agileapplet I guess it depends on what you'd like to achieve with that.
In actuality, the whole game runs inside a Do While loop, so all of your evaluations can be done inside of that main game loop.
There's an example of this in my GDI game programming tutorials - in the first video even. :-)
Hope that helps.
-
@Aardaerimus hey, thanks for replying. Can I just ask; is it possible to use a Do While loop and if so, how would it be set?
-
@agileapplet Hi there, agileapplet. :-)
There are several ways to handle collision detection. In this particular example I use tile-level blocking (I have video tutorials for this on my channel). Essentially, I have a 3rd dimension in my Map array that stores a boolean (0 or 1) value. I then have the toon check the movement direction and assess whether the next tile in that direction has a 0 or 1 (passable or blocked). :-) Hope this helps.
-
How did you stop the man from going through the wall??
really nice
DRSketchyHedgehog 1 month ago
@DRSketchyHedgehog
Thanks! Hard to believe this was done many years ago with VB6. :-D
Aardaerimus 1 month ago
daym man !!! awesome stuff !! but i wanna ask ,.. can u like kill mobs and stuff ??? i just started learning all this stuff so im still very noob xDD
aldentan1 2 months ago in playlist More videos from Aardaerimus
@aldentan1 This was a really old VB6 project. Now I use VB2010 with GDI+ and I'm now learning XNA 4. I made a couple demo combat generators without graphics, though. Combat is fairly simple - creating random numbers for attacks and heals, then adding damage and whatnot based upon player variables (weapons, stats, etc.). I need to do a tutorial on this, but I'm learning some tricks with structures/classes right now that's taking me in other directions.
Aardaerimus 2 months ago