I dunno what I'm doing yet... I just thought I should get the basics of tiled game first...
Next logical step will probably be to get somekind of sprite to move around...
I have no idea how to do the collision detection so any pointers are very welcome...
Please don't post any code - just keep doing what you have done so far - give me pointers in the right direction or post psuedo code.
I feel I learn much more that way then if I just copy and paste code...
Thanks
Edit ----
If we assume that the sprite moves with 20 pixels (the width and hight of the tiles) at a time. And then divide the x and y by 20 we should get the tile we're on right now and then it's just a matter about checking to see if the tile we're about to step on is a wall or not...
The problem is that I can't get the sprite to move...
I've tried Form_KeyDown and KeyPress - neither of them worked at all. Then I tried GetAsyncKeyState but it executes the moving code to fast, by the time I release the button the sprite is long gone from the screen... And I haven't been able to figure out how to just execute the code once...




Reply With Quote