Sign in to follow this  
namingway

C# Map Editor help

Recommended Posts

I am currently attempting to make a map editor with C#, Presently I have a panel which draws a grid, and a menu strip with an item to let you turn off the grid, however it doesnt work. Teh grid drawing is on the paint event for the panel. I have it so if the grid option is checked draw the grid if not clear it but it draws it anyway. Also what are some recommendations for going about making a map editor? I'm after the palette to the side and grid on the other side and you just pick your tile and drop it on.

Share this post


Link to post
Share on other sites
The code is on my laptop atm but it was basically

grid_onClick
checked = !checked

panel_onPaint
if grid.checked is true
draw grid
else
clear to the background colour

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this