Search found 9 matches

by Manifest222
Mon Feb 01, 2010 6:47 pm
Forum: Programming Discussion
Topic: How do you make certain colors of a bitmap not show up in C#
Replies: 3
Views: 438

How do you make certain colors of a bitmap not show up in C#

Note that I am using Visual C# 2008 Express Edition right now. Hey guys, right now I'm working on a level editor and my tile set bitmap is set inside a Picture Box with the name of myTileSetPic. A problem I have encountered is that with my level editor there are tiles like trees and stuff, but my ti...
by Manifest222
Sat Jan 30, 2010 11:58 pm
Forum: Programming Discussion
Topic: Visual C# 2008 Adding Picture Boxes Dynamically
Replies: 0
Views: 4551

Visual C# 2008 Adding Picture Boxes Dynamically

So to add a picture box dynamically to the stage, it's very simple. Here is some code that I would use: PictureBox myPicBox = new PictureBox(); myPicBox.Location = new Point(0, 0); myPicBox.Width = 100; myPicBox.Height = 50; myPicBox.Visible = true; myPicBox.Image = new Bitmap(image here); this.Cont...
by Manifest222
Sat Jan 30, 2010 11:09 am
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

Re: How do I split tilesets to single tiles with c#?

Derp, I'm so stoopid. :oops: Sorry, I thought you was using a graphics API. Thank you anyways for the link. When I eventually in life start making game tests, and just as an example, make the character move with an animation very smoothly, etc. I'm going to have to use that link you sent me, so tha...
by Manifest222
Sat Jan 30, 2010 11:06 am
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

Re: How do I split tilesets to single tiles with c#?

It's not built into c# at all, rather, it's "built in" to the .net framework. VB.net has the exact same methods and way of doing things, just with a different syntax. Anyway, just a few things to nitpick :P First - the last function, you repeat a call twice. Selector.Location = mySenderPi...
by Manifest222
Sat Jan 30, 2010 1:03 am
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

Re: How do I split tilesets to single tiles with c#?

Erm if I'm not mistaken... your using some sort of library API with: using System.Windows.Forms; Yes I am, it's built in to Visual C# 2008 Express Edition, it's just a built in library. It's sort of a built in library that allows you to make things like, calculators, forms, other shit, editors, uhh...
by Manifest222
Sat Jan 30, 2010 12:05 am
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

Re: How do I split tilesets to single tiles with c#?

Figured it out, and it was fairly simple... :mrgreen: To tell you the truth, just doing this took me two days to get together, probably cause I'm a new person to C#, and it works perfectly. Thanks guys for helping me find this out, and I guess I could just give you guys the code. Note that I am jus...
by Manifest222
Thu Jan 28, 2010 12:36 pm
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

Re: How do I split tilesets to single tiles with c#?

Here you go, friend. http://www.lazyfoo.net/SDL_tutorials/lesson06/index.php This is C++ but it should give you the right idea. Hope this helps. ;) You have GOT to be shitting me. You haven't gotten much feedback in this topic, because it's completely dependent on your graphics API. What are you us...
by Manifest222
Thu Jan 28, 2010 7:07 am
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

Re: How do I split tilesets to single tiles with c#?

Thanks for the URL. The only problem is, this guy was using SDL with Dev-C++ which is COMPLETELY different from Visual C# 2008. I understand what I need to do... I just have know idea how to code it. Here are basically the steps of what I need to do: 0: Create an Array that would hold ALL of our til...
by Manifest222
Tue Jan 26, 2010 10:36 pm
Forum: Programming Discussion
Topic: How do I split tilesets to single tiles with c#?
Replies: 15
Views: 1734

How do I split tilesets to single tiles with c#?

Hey guys, I have been using Visual C# 2008 for well, since it came out. I have gotten used to it and thought it would be fun to attempt making a small, decent level editor. Now I've made one of my tile sets, but I've ran into a problem right at the start. I can't seem to find a way to take the pictu...