Visual Basic Game Programming Tutorial - Part 3 - Graphics and Tile Mapping

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 225

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    This is an unfortunate side effect of using GDI+. It's processor based rather than GPU based, so it doesn't use your video hardware adequately, thus its performance varies from computer to computer.
    For amped up performance, you're going to want to use a graphics framework like XNA. Your FPS will likely increase by thousands (of course you'll want to throttle it back to 60.

  • @levy7805
    @levy7805 8 ปีที่แล้ว +1

    "Im not very good at this" "i could do better" BRO YOUR THE BEST! Honestly You're the only one that actually had a solution to my problems in programming.

  • @jensinamart5153
    @jensinamart5153 12 ปีที่แล้ว

    Thank you! I actually made that post the moment I ran into the problem and didn't stop to think about it. I actually figured it out myself a few minutes later. Sorry for the fake out and thanks for the help :)

  • @itsMeSteveinix
    @itsMeSteveinix 12 ปีที่แล้ว

    nice tut bro . I just got interested with creating a game using VB with
    atleast little pictures moving or etc in the screen but after watching your tuts, It just
    took me in and made me more interested in it. Good Job making this bro .. Thumbs Up!!

  • @tobine112
    @tobine112 12 ปีที่แล้ว

    The problem with game makers is that they're limited, and you still need to have knowledge of scripting to have custom content (if any).. Thank you Aardaerimus for teaching us how to code for real.
    Also coding in a language like VB or C++ allows you to have more than any game maker out there.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @xSileNT612x Awesome! Thank you for stopping by! I do hope we'll be seeing some project vids. :-D

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    Thank you, Mitchell! You're quite right. :-) Which also means that BMP files are going to have a much larger footprint and consume more resources. PNG files will also carry alpha (transparency) values, eliminating the need for masking.
    I was still very new to this at the time I made this tutorial.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    You can use both images and even different picture boxes. You just have to specify the proper image source when you draw the image. Because they're both tilesets, it may be much easier to combine them than to try to create conditions to make it choose one or the other.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    Exactly! :-D Some people just want to make games fast and are content to use game makers.
    I'm not content to just make games. I'm curious by nature and want to understand HOW it all works.
    Once you understand it, there are no limits to what you can achieve. This appeals to me much more than being confined to a structure that someone else built. I want to have the knowledge and ability to change the very foundations of that structure, for better or worse.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    What I recommend is starting simple. First practice and learn your way around the IDE. Make simple form applications and understand objects, properties, methods, and events. Teach yourself by making the objects interact.
    Then learn how to create your own objects (classes). When you achieve your simple goal, destroy your project and start from the beginning on the next goal.
    The repetition will make the ideas stick in your brain. When comfortable, try something more complex. :-)

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    In that case, I hope you're wildly successful! ;-D
    If you're planning on making a distributable game, I highly recommend using a more efficient framework rather than using GDI. XNA will give much better performance. Of course, GDI is great for "low action" games, like card games and such.
    At any rate, I wish you great success with your projects!

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    Hello, Brian. In some later tutorials I cover this exact topic as well as showing how to compress and load the file data.
    In a nutshell, you'll want to create a tile class so that each tile object has its own set of properties and methods.

  • @mitchfizz005
    @mitchfizz005 12 ปีที่แล้ว

    PNG Files are probably the best files for tiles.
    PNG Files store the colors in groups, where as BMPs, they storage the color of every single pixel, therefore, you are better off using PNG for better FPS, load times and disk space.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    To stack tiles, you're going to end up needing to draw in layers. You could layer your tiles individually and draw them in a specific order. What I intend to try is storing "objects" (barrels, signposts, etc.) to a separate list and draw them over the map, before drawing the toon.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    I kinda sorta did at the very end of the video. I do love the feedback and comments, but I hate to be spammy, so I rarely actually send out requests for views and likes. I appreciate the comment, Rishimahey! :-D

  • @devilzwishbone
    @devilzwishbone 9 ปีที่แล้ว

    Im a software developer and have been working with VB since I was 13 (im now 31), never tried developing games involving graphics before its been mainly been telecoms, server based applications however im keen to learn how to do games as a hobby
    Didnt like the missing GFX tutorial, I downloaded it in your URL in the description but feel i now need to get to understand what the GFX file contains and how it works to get a full idea of how this game gets developed, whilst im following a tutorial im learning a long the way, if im just inserting bits of script you have developed elsewhere then i cannot say ive learnt to make a game, just merely call upon 3rd party api scripts.
    also a tip would be to improve the wording of your variables
    Ie start every integer with int, every boolean with bl
    Such as
    dim intResWidth as Integer = me.width
    dim intResHeight as Integer = me.height
    dim stGameTitle as string = "First Game"
    dim blRunning as boolean = true
    This way later on in the code you can tell what each variable is simply by its name
    Ive rated this video a thumbs down simply because of the GFX part, everything else has been thumbs up up until now hope i dont come across any more nasty surprises that end up putting me off as the end result of your videos seems pretty good which has got me wanting to learn how its done

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    I think I was using an 800x600 image for my tile source pallet. The size really doesn't matter, though. You can use any size you like, since our source rectangles will only be grabbing pieces of the whole image anyway. :-)

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    pbGFX is just a PictureBox control added to the the GFX form and named "pbGFX". The "Image" property will your tile set picture. :-) Hope that helps.

  • @tenshia5250
    @tenshia5250 6 หลายเดือนก่อน +1

    What should I do if I want to populate a certain range of tiles with images? Like I have a wall image and a floor image but I don't know how to make the floor show up like the default case

    • @AardaerimusDAritonyss
      @AardaerimusDAritonyss  5 หลายเดือนก่อน

      Hello :-) I'm having a little trouble understanding what you're trying to do. Do you mean that you have transparent sprites that you wish to draw on top of the tiles (layers)?

  • @rainny4
    @rainny4 11 ปีที่แล้ว

    Thanks for the Tutorial... your tutorials really helpful for graphic and so organize the code :D

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    @4Antonis Right you are, and thanks for pointing it out. :-D

  • @ruzsicsL
    @ruzsicsL 12 ปีที่แล้ว

    Thank you for the Tutorial! It's a very usefull for me!

  • @gibsonnathan
    @gibsonnathan 12 ปีที่แล้ว

    your videos are awesome man.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    Hmmm That's going to be a lot to go over. This is an olllld GDI+ video and I think I was just storing an array of integers to represent tiles, rather than actually storing an array of tile objects.
    In that case you could store the "layer" as an additional vector in the array:
    Old: Map(X,Y)
    New: Map(X,Y,Z) - Use the Z index as the layer. Every new value of Z creates an entire new layer of X/Y values.
    It's better to create tile objects (see Adventures in XNA), then add a layer property to them.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    I'm using Visual Basic 2010, which is part Microsoft Visual Studio. If you don't wish to pay for the professional edition you can download the free Express Edition directly from Microsoft. :-)

  • @4Antonis
    @4Antonis 12 ปีที่แล้ว

    @Aardaerimus you're welcome :p awesome tutorial btw

  • @TheHammer497
    @TheHammer497 11 ปีที่แล้ว

    Figured it out, and for real this time!

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    Thank you! :-) I apologize for the error in this video. It was supposed to display how to add some of those graphics, though the techniques I used in this video are very old and I hope to soon be releasing a much better way to do these things. Feel free to send me a private message if you have a specific problem I can help with. I'll try my best to help. You can also download the source code from the link. :-)

  • @dustingordon4489
    @dustingordon4489 10 ปีที่แล้ว +1

    Hi I'm having an issue with bmpTile = New Bitmap(GFX.pbGFX.Image)
    Its saying no accessible "New" can be called without narrowing the conversation.
    Any thoughts?

    • @Cambersrak
      @Cambersrak 3 ปีที่แล้ว

      Did you ever fix this?

  • @mishadewaal-hart4446
    @mishadewaal-hart4446 10 ปีที่แล้ว

    These are so helpful thanks so much!!!!

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @nankurunaisa6567 I don't have any tutorials on this yet, but I may try to do something like it in the near future.
    What are you using for your "canvas"?

  • @agusbrollo
    @agusbrollo 8 ปีที่แล้ว +3

    im having trouble with bmpTile = New BitMap(GFX.pbGFX.Image), pls help

    • @Cambersrak
      @Cambersrak 3 ปีที่แล้ว

      Did u ever figure it out?

  • @thelozerkid25
    @thelozerkid25 12 ปีที่แล้ว

    I don't understand, I'm using Corel Paint shop proX5 and i cant follow with what your doing, or what hot keys you pressed to copy the image or how you put all of those pictures on one page layout.

  • @AmeanAF
    @AmeanAF 11 ปีที่แล้ว

    Your Solution Explorer, how did you get you added a folder and called it Resources? You add a new item which is a Windows Form file I assume, and named it GFX (dot) vb? add a picture box a put the tile image into the picture box? But what is that tileset (dot) bmp

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    That's what almost all of my videos are about. :-D What kind of game do you hope to create? GDI is most simple, but is not good for games with a great deal of movement and animation. It's great for puzzle games, card games, etc. My oldest videos cover this topic.
    If your games have a lot of movement and animation, you'll need a more robust framework, like XNA. My newer videos demonstrate the use of XNA. :-)

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @SuperRandomshit101 I make a terrible programming partner, as I'm super busy most of the time, but you're always welcome to fire me a PM or email and I'm happy to assist or answer questions when I find time.
    A board game tutorial is really a great idea, though a bit involved. I will certainly consider this idea in the future. :-D
    The good news is that these tutorials really can be used to get you started. The only real difference is that a game board is usually one image rather than a tile map

  • @YeeTheBee
    @YeeTheBee 11 ปีที่แล้ว

    How do I put a tile on top of another tile if the first tile is an image (ex:barrel) with a transparent background.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    Are you talking about the mouse rectangle remaining at the edge of your screen even after your mouse has completely left the game window?

  • @thelozerkid25
    @thelozerkid25 12 ปีที่แล้ว

    When You First create the first image where all of your textures are on what the size of the main page?

  • @mariperla5220
    @mariperla5220 12 ปีที่แล้ว

    Hey I love your tutorials , thank you! I have a question, did you make any tutorial about how to draw on screen? I'm gladly following your visual basic tutorials, but i stopped at the n 3 because i don't know how to draw on screen :/ (like mountains, or trees or other objects) thanks!

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    @ToastedCreeper This is a common problem with using GDI, unfortunately. It's incredibly inefficient. To overcome this, you may have to trim up your screen size and reduce the scope of the map array.
    Try setting Map(100,100,10) to Map(100,100,1). Then reduce the size of your FOR X and FOR Y drawing loops.
    Try For X = 0 to 10 and for Y = 0 to 5 and work your way up to see where your performance dies out.

  • @kameronjones357
    @kameronjones357 10 ปีที่แล้ว

    I have Gimp, but I'm a complete n00b f4g and don't know what the heck I'm doing. Is there any place I can go to, to get pre-made sprites and terrain designs like his or something?

  • @johnneijzen
    @johnneijzen 12 ปีที่แล้ว

    thx For Tutorial i will try it this week but if have school

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    Yes and no. I plan to do the layered mapping; However, we'll initially be doing a single layer map with a fully structured tile system.

  • @StArScR3aMz
    @StArScR3aMz 10 ปีที่แล้ว

    i cannot get the image to come up on visual studio like yours does, it come up with the same image twice and i can zoom in and stuff,

  • @johngeetar
    @johngeetar 12 ปีที่แล้ว

    Great stuff man. I am a c++ programmer and I commend you for being able to work with VB syntax... When I see it, it makes me want to shoot myself lol. I used to use VB back in the day when I was making strictly GUI apps but I never got into the advanced VB programming like you have. It's so strange after the amount of time I have spent programming to see just how incredibly foreign VB seems.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @FinnishRonaldo Good catch! I have no idea how that cut off there. :-O
    All I did was add another form to the project. Simply Right-click your project name, in the solution explorer, select "Add" --> Windows Form. Name it GFX. Then you can add your Picturebox to it.
    Sorry about the confusion!

  • @Hersheyvin
    @Hersheyvin 11 ปีที่แล้ว

    sir aardaerimus may i ask a question? i made the form larger and when i load it the form seems to be slow and "choppy" especially when i move the character.. do i need to maintain the exact resolution of your work? how do i adjust in making the screen larger to make the program less laggy?

  • @jensinamart5153
    @jensinamart5153 12 ปีที่แล้ว

    I did make the form but I don't know how you got the image in there. May I ask, how did you do that?

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @TheOrneryNerd MS Paint is defintely not your friend for sprites and tiles. GraphicsGale is free and actually designed for pixel by pixel editing. It has a grid and preview window. It's really as small and simple as MS paint, but designed specifically for pixel art. It can also be used to animate. The right-click color selector is helpful once you make yourself a small gradient pallet (most tiles have very few colors).
    Gimp is also free and way more powerful, but may too much for pixel art.

  • @soulkiss31
    @soulkiss31 11 ปีที่แล้ว

    Sounds good! Is there anything special I need to do with ms paint like set dimensions? Any recommendations? I don't care if it's pretty or not; I just want it to work.

    • @AardaerimusDAritonyss
      @AardaerimusDAritonyss  11 ปีที่แล้ว

      There's really nothing more to it. :-) Naturally, you'll set your dimensions to whatever is needed for the number of tiles you wish to design. The only really important thing is making certain that your grid aligns with the tile size that you intended to use in your game. I'm not certain if you can show your grid in paint, but it's a really helpful feature for alignment.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @SuperRandomshit101 Hey there! It's TOTALLY doable. In fact, I was just toying with this recently. :-D It's actually much easier to produce a board game than most other games since the graphics and backdrop tend to be static. Most of your work will go into your cards, shuffling, setting up player turns, etc. Moving pieces around the board is fairly easy, depending upon your approach.

  • @davidreis7693
    @davidreis7693 12 ปีที่แล้ว

    Thanx because i was looking for jasc in not able to find a free one, i wanted to give up.
    Again i was wodering inthis vedio hw you calculted you x and y coordinates for th image?

  • @kevnar
    @kevnar 8 ปีที่แล้ว

    For the select case about 20:00 minutes in, I just wrote the math into the code instead of trying to do it in my head.
    Select Case Map(x, y, 0)
    Case 0 ' grass
    sRect = New Rectangle(1 * 32, 0 * 32, TileSize, TileSize)
    Case 1 ' tree
    sRect = New Rectangle(1 * 32, 4 * 32, TileSize, TileSize)
    Case 2 ' mountain
    sRect = New Rectangle(5 * 32, 4 * 32, TileSize, TileSize)
    End Select
    It saves hunting down errors later on, if your math happens to be off a bit. Plus it's quicker.

  • @MrGamemasterman
    @MrGamemasterman 11 ปีที่แล้ว

    Oh do u have video on how to program a 2D game for beginners

  • @TheHammer497
    @TheHammer497 11 ปีที่แล้ว

    I was wondering how to create a file that could store the map data.

  • @HazelKrauss
    @HazelKrauss 12 ปีที่แล้ว

    I was trying to create this myself and followed your instructions. I even went back and followed them 4 times before I wrote this comment. Basically nothing appears on the screen when I run it. It stays blank as though it is not drawing anything at all. Did you miss something out in the video?

  • @wuss15
    @wuss15 11 ปีที่แล้ว

    Thank you for the work you have put into this. I'm fairly new to VB and programming and it is really helping me alot!
    I do however have a question. I notice you put your bitmap image (the one with the tiles in it) in another form and in thats picturebox. Isn't it possible to call it directly from resources?
    I'm trying to call it direct, but i keep getting errors.
    It's this code:
    bmpTile = New Bitmap(GFX.pbGFX.Image)
    I have tried this, but doesn't works.
    New Bitmap("tileset.bmp")

  • @YeeTheBee
    @YeeTheBee 11 ปีที่แล้ว

    So I have 2 images that i want to use as tilesets but VB is only using the first one which is named pbGFX. How do I use both images? Does it have to be one picture?

  • @Oogobuk
    @Oogobuk 10 ปีที่แล้ว

    I love these series.. can VB 2013 Express do these? can you explain the difference between some of the versions in capabilites? Also, what is the GFX? you started with the tiles already there... would be nice to see how you made your source bitmap, and how it gets put into the visual studio.

    • @AardaerimusDAritonyss
      @AardaerimusDAritonyss  10 ปีที่แล้ว

      You _should_ be able to do all of these things in VB.NET 2013.I haven't had much opportunity to play with 2013, but I don't think that the differences between 2010 and 2013 are very significant, save that the IDE has been altered (I prefer the 2010 interface). I'm sure that that are some differences, but over all the syntax seems to be virtually identical.
      As for the GFX class - that was a production mistake on my part. These old GDI tutorials are really dated and rather poorly executed... lol There is still much to learn from them, but many of the practices used were rather inefficient and could be (and have been) significantly improved upon.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    Helloo, Jensina! :-) I'm sorry for the slow reply. Here is a similar reply I made to MrNigpls about this a while back:
    "I'm thinking I made a mistake in the video there and it just magically appeared. :-P You can right click on your project and add a new form and name it GFX.vb. I think I was just using that to store the tile pallet in this old demonstration."

  • @YeeTheBee
    @YeeTheBee 11 ปีที่แล้ว

    So I am just a 15 yr old and fairly new to VB. What would the code look like for this?

  • @markmoraru7385
    @markmoraru7385 6 ปีที่แล้ว

    how do you set images to replace the red and blue tile on the right side.
    in the code it is set to
    G.FillRectangle(Brushes.red, 21 * TileSize, 4 * TileSize, TileSize, TileSize)
    but i want to replace the colored tile with the image of the tile that you are placing on the map

  • @BinNationGroup
    @BinNationGroup 11 ปีที่แล้ว

    Hi Aardaerimus, I'm thinking of making a 2D Game like your making now. I've followed all the steps and it's really nice! However, how would I code a foe? I'm a newbie - I've only watched your videos for coding and I've tried my best to understand them. What kind of codes would you need for a moving npc? I'm not sure at all, could you help? (Hope you understand what I mean :P)

  • @chunkymonkey9953
    @chunkymonkey9953 5 ปีที่แล้ว

    im watching this 8 years later, does the source code still exist?

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @thestalkinghead I'm glad that you found a workaround. sadly GDI fails to utilize your graphics hardware for rendering, so it is typically very sluggish. It also helps to greatly reduce the number of tiles that you render in your "For X/Y" loop, and reduce the form size.
    On the bright side, I'm working on starting up a short series of tutorials on XNA. I'm currently drawing 13 by 10, 48x48 tiles and getting an insane 4400TPS.
    What OS are you on?

  • @TheOrneryNerd
    @TheOrneryNerd 13 ปีที่แล้ว

    Awesome vid!
    what version of Jasc you're using?

  • @philipwalsh1999
    @philipwalsh1999 12 ปีที่แล้ว

    what link did you use to download jasc please i need it thanks

  • @cubicunlosing6159
    @cubicunlosing6159 9 ปีที่แล้ว

    Can someone help me add the bmp photo to my folder that I created. I keeps saying "Cannot find file tileset.bmp"

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @FinnishRonaldo Awesome! Glad I could help. :-)

  • @Hersheyvin
    @Hersheyvin 11 ปีที่แล้ว

    aww thats really bad. but another question sir. is there a simple way to talk to an npc? what i did was just adding the sprite to the tilemap(the getsourcerect) and i am fine even though they dont move. i just want to trigger a dialog when facing them. is there a simple way of doing that?

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @nankurunaisa6567 I think that the best way to do this would be to create a Class, then a set of properties to store Image Source, Source Rectangle (If using a PictureBox), X/Y as destination or Form coordinates, Width, and Height, etc... Then use the mouse down/up events to check the coordinates of the mouse against the coordinates of the object and lock them to the mouse coordinates. Store each new object to an array, and loop through it to redraw each object at its specified X/Y coordinates.

  • @AnoterosHershy
    @AnoterosHershy 12 ปีที่แล้ว

    Could you lets say import a tile map made in this program into a different game engine, such as Unity?

  • @kloki1234
    @kloki1234 12 ปีที่แล้ว

    why cant i open my bmp or png image in visual basic? ( I have made it in graphichsgale and snapped it together with GIMP )

  • @dobbyplayz9233
    @dobbyplayz9233 6 ปีที่แล้ว

    where u get GFX.vb I dunno where that is

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    Yeah, I'm sorry about that. I made this tutorial a long time ago and made some mistakes in production. If there's anything specific I can help out with, let me know. :-)

  • @computertutorials2517
    @computertutorials2517 10 ปีที่แล้ว

    Hello sir, I followed your instructions in this video, and the code functions properly. However, the performance has been reduced drastically. My frames per second dropped to 1; it is incredibly slow. Any ideas to increase efficiency?

  • @levy7805
    @levy7805 8 ปีที่แล้ว

    Download for the tile sheet? i want to use it and remake it with the sizes already in.

  • @freelancerDelta
    @freelancerDelta 5 ปีที่แล้ว

    Well I’m probably like 5 years too late but I’m making an RPG in Visual Basic as an advanced higher project and using Visual Basic 2008 and I’m having issues in the ‘getSourceRect’ private sub where it’s giving me an overload resolution error, any idea what’s wrong?

    • @AardaerimusDAritonyss
      @AardaerimusDAritonyss  5 ปีที่แล้ว

      Freelancer X20 Wowzah! This is old, indeed. I’m not entirely certain what that message is and it’s been ages since I’ve had a chance to play with any of these old projects, but the last (and best) GDI demo I did was Dragon Drop 3, I believe.
      Link here:
      www.dropbox.com/s/s0kurdcqcql835l/DragonDrop3.zip?dl=0
      I would compare what you’re doing with your rectangles to what I did in this project, since it was more clean and optimized.
      It was made in VB 2010, so if I used any lambda expressions, you’ll need to convert those to standard For Each loops. Easy enough. Hope that helps! 🤙

  • @davidreis7693
    @davidreis7693 12 ปีที่แล้ว

    Where did you download jasc paint pro?
    can you give me the link please?

  • @soulkiss31
    @soulkiss31 11 ปีที่แล้ว

    Hello! I'm a little new to
    Layer Graphics and I have gimp but never used it. Can I
    draw the graphics in ms paint and then edit with gimp or can I do what you did in gimp alone? Can I just use paint and that's it? Just wondering why layering is important? Thanks in advance!

    • @AardaerimusDAritonyss
      @AardaerimusDAritonyss  11 ปีที่แล้ว

      Hi there, Soulkiss31! You can use just Paint, if you like. :-) Gimp is a bit more powerful and has far more options (maybe a little too much at times), but Paint will do just fine for pixel art. GraphicsGale works well, too. I think that Gimp has better alpha channel control (for transparency, etc). I recommend saving your files in a PNG format. :-)

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @YouMadJellyBro No offense taken. :-) You're absolutely right, and if your intentions are to quickly create games and don't mind utilizing already available frameworks, this is a great approach.
    What I focus on primarily is teaching how the code flow works and what is involved in coding your own environment. This grants the creator unparalleled control of their environment, so the sky is the limit. :-) It's the hard way, but in the end, more knowledge is more power.

  • @stevenhicks5814
    @stevenhicks5814 9 ปีที่แล้ว

    Can someone help me add the bmp photo to my folder that I created. I keeps saying "Cannot find file tileset.bmp"-
    try saving it in your project\bin\debug folder on the picture box control properties click on image you get dialog box check local source push import button and ok it should show your bmp in there if not trying send more info and what you have tried and not hope this helps.

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    @kshitij721 It almost sounds to me like either your graphics loop is not cycling properly, or your backbuffer is not being cleared, else your mouse click event is not set properly.
    Those are the things I'd check first off.

  • @JackPS9
    @JackPS9 12 ปีที่แล้ว

    We going to be getting tile layers in the next set of tutorials?

  • @philipwalsh1999
    @philipwalsh1999 12 ปีที่แล้ว

    thanks a lot for your help :), i'm not sure but i think i know how it works now

  • @MrGamemasterman
    @MrGamemasterman 11 ปีที่แล้ว

    what soft were did u use

  • @00duke1
    @00duke1 12 ปีที่แล้ว

    I tried PNG format so I could create Transparent Graphics. PNG does work, but the Transparenccy is NOT kept when reformated to BMP by program. However, a picture box can hold transparent PNG files, so if you need a transparent background for a block, put it in a Picture Box Visibility = False, when needed, edit is Location and Visibility. Hope this can help!

  • @wuss15
    @wuss15 11 ปีที่แล้ว

    Thank you. Got it figured :)

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @raffantt Hey, thanks! I appreciate the comment. :-D

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @TheOrneryNerd MS Paint is definitely not your friend for sprites and tiles. GraphicsGale is free and actually designed for pixel by pixel editing. It has a grid and preview window. It's really as small and simple as MS paint, but designed specifically for pixel art. It can also be used to animate. The right-click color selector is helpful once you make yourself a small gradient pallet (most tiles have very few colors).
    Gimp is also free and way more powerful, but may too much for pixel art.

  • @MrGamemasterman
    @MrGamemasterman 11 ปีที่แล้ว

    Yea I like your video it's helpful but I just have to keep going back to check to see if i do it right

  • @kloki1234
    @kloki1234 12 ปีที่แล้ว

    I Love the credits:D

  • @TheOrneryNerd
    @TheOrneryNerd 13 ปีที่แล้ว

    @Aardaerimus
    Thanks! I'll be honest and say that painting the graphics 'correctly' by the tiles is basicly the hard part for me, as I'm using Microsoft paint (200,200 pixels).... the coordinates part to find the part of the picture i'm looking is pretty difficult!

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  12 ปีที่แล้ว

    I'm thinking I made a mistake in the video there and it just magically appeared. :-P You can right click on your project and add a new form and name it GFX.vb. I think I was just using that to store the tile pallet in this old demonstration.

  • @HersheyVin-sw9lw
    @HersheyVin-sw9lw 11 ปีที่แล้ว

    good day sir! if i move to xna, can i import my gdi work to my xna? or should i start all over again?

    • @AardaerimusDAritonyss
      @AardaerimusDAritonyss  11 ปีที่แล้ว

      Much of the code is reuseable; However, the boilerplate or main project setup is quite a bit different, as well as the drawing routines. On top of that, some of the things I taught in the old GDI videos have been dramatically revised and improved, and even since the release of the original Adventures In XNA series. Still, the change is highly recommended as the performance gains are enormous. :-)

  • @Vekkuli001
    @Vekkuli001 11 ปีที่แล้ว

    ITS WORKING WITH .png IMAGE. I Write Map In Paint And Save It .png And I Follow Tutorial And Its Work :D

  • @MrGamemasterman
    @MrGamemasterman 11 ปีที่แล้ว

    What program did u use for coding

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  11 ปีที่แล้ว

    I've been thinking about doing a series for complete beginners. You should be able to pick up a bit from my videos, hopefully. Good luck! :-)

  • @AardaerimusDAritonyss
    @AardaerimusDAritonyss  13 ปีที่แล้ว

    @xCrosSLightx Did you hand code it or use my source code? I noticed when I loaded my source on other computers, some of them didn't like it. There may be setting in one of my files hanging it up. :-(
    Another possibility is that you're using too many tiles. If your X/Y loop and your tile size is coming out to too many pixels, the GDI can really bog down.
    You're welcome to send me a private message with your loop source and I'll be happy to help if I can. :-)