Results 1 to 40 of 52

Thread: Tile engine

Threaded View

  1. #11

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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...
    Last edited by McCain; May 5th, 2002 at 07:26 PM.
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width