? Text character collision (Page 1) ● SmileBASIC Source Forums

Sign In

*Usernames are case-sensitive
Forgot my password

Text character collision

  • #1 ✎ 74 KingCo Avatar Taboo I didn't change my avatar for 180 days Website RNG Hidden Easter Eggs Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength So, I'm trying to make a top down text console game. I have moving working, but collision is the part I am having trouble with. Basically I want the stickman to not go through walls (the text characters that look like walls, obviously) and instead I want him to (when he touch the walls) just be able to go around the edges of the text character, if that makes any sense. I can't seem to find any programs that are similar to the one I am currently developing, so that is why I am asking here. Posted
  • #2 ✎ 905 Y_ack Head Admin CHKCHR(X,Y) will give you the character code at the specified screen coordinates You can use it to check the location the player is trying to move to and not move/change position some other way if the character in that spot is your 'wall' character This is assuming you don't have a better underlying representation of your display Posted