#1✎ 74KingCoAvatar TabooI didn't change my avatar for 180 daysWebsiteRNGHiddenEaster EggsIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthSo, 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.
#2✎ 905Y_ackHead AdminCHKCHR(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