With a little help from my friends… (cue Beatles music) — I’ve figured out how to handle tile stuff. Basically you’re going to have the tileset panel, that you are able to select tiles by dragging a selection box. Then a “brush” is automatically created, then you simply “stamp” or draw it onto the map. On the map you have to hit shift and click-drag, to select, otherwise it will draw on the map… to erase you’ll use the right mouse button to erase where there were tiles in the brush. I’ve seen this in action and it seems quite simple, and easy to use.
Archive for the ‘Hypno-Joe Development.’ Category
Figured out what I’m going to do.
Friday, September 18th, 2009Progress of Hypno-Joe and editor
Monday, September 14th, 2009I’ve been working on the editor for some time now. And in fact have got moving platforms, and tile collisions, and basic platform physics working in the actual game part of the program. But right now I’m going to talk about the editor. It’s got map saving and loading (currently only one map can be saved or loaded). It’s got tile placement (if you look in the first screenshot below you will see a little green square and a purple one, these are tiles for the moment). You can scroll around the grid too. You can also erase tiles by right clicking anywhere.
Notice the “scroll down” button… It doesn’t do much right now other than highlight if hovering over it or shaded if you press the left mouse button. In any case I’m trying to figure out how to organize my tiles, and indeed about tile creation. I figure that you will be able to create tile chunks, which are composed of those 16×16 tiles, this way you can get kind of detailed and as long as the tiles are multiples of 16 then you can stack them up on top of each other. Let’s say a window is 64×32 pixels… that’s 4 tiles across 2 tiles down. Let’s say you want a flower in a pot on top of the window ledge. And the ledge itself is 64×16. which is 4 tiles across 1 down. and let’s say your flower pot with flower is 2 tiles high and 1 across (16×32). You want the flower pot to sit right on top of the ledge so you place it in the position starting with the bottom of the window but on top of the window ledge. Because these are all multiples of 16 the flower pot sits neatly on the ledge in front of the window. That was the purpose to these tiny tiles instead of big ones. You create a big one (ie the window) from individual tiles in an image (corners, frame, glass). So now I’m trying to think of how to organize the tile panel there on the sidebar. Do I just keep adding them making sure they’re spaced out the size of 1 tile. Do I create a specific size for the tile panel so it scrolls off screen as well. Do I create separate pages for each size of tile chunk. I have a lot to decide. To help me figure it out I created a little mock up. It’s not much different than the screen above except it has what would look like other sized tiles.
Well there you have it. Any idea folks?
Keith
Next look at UhfEdit
Thursday, June 18th, 2009Well here’s a new update. Now I’ve got the ability to manipulate the map size, the cell size, and to turn the grid and info on and off. I had a bear of a time attempting to get the keyboard input stuff working exactly how I wanted and now it works great! The other issue is once I worked the resize issues out, there was a graphical glitch that caused the selector square to remain where it was even though it was off the map. Since I’m not really planning on using the keyboard to select actual tiles (at least at the moment) I decided (on advice of others, thanks #xna!) to just simply hide the selector (dark red box on the grid) when it was off the grid. You can see what I mean here:
That’s sort of unwanted. However you can see I fixed it here:
Okay now for the main event, a video of the map editor in action. Notice it still doesn’t do anything yet because the next thing I will work on is a tile selector panel and then the ability to place tiles on the map. Note a tile is just an abstract concept for still image or animation that is placed on a map. A tile can be any size and shape and be put anywhere on the board, just as long as you got the grid off. With the grid on it will line up with the upper right corner.
Please forgive the quality of the video. I captured with CamStudio, and then converted it from 1280×720 down to 640×480 (with black bars to keep the aspect ratio at 640×360 ie 16:9) Anyways it should give you an idea of where I’m going.
Keith