How to go from a moving to text?

April 19, 2015 at 07:32:34
Specs: Windows 7
I have a program that lets a character-@ move around in a small room like this
________
I-----------I
I-----------I
I-----@----I
I-----------I
I-----------I
_______
where the @ can move in the - spaces. but I want it so that when I move it a specific spot in the room, I can go to a different method. For example,
________
I----------I
I----------I
I----@----I
I----------I
I--------a-I
________
when @ goes the spot a is on, then I can go the method or change the screen to a different method and go back.
Such you found a treasure!
or
An enemy wants to fight you.
And then once the fight is over, then you go back to the level where you can move.

See More: How to go from a moving to text?

Report •

#1
April 19, 2015 at 23:00:32
So what's your problem?

Report •

#2
April 20, 2015 at 22:26:07
Clear the screen, do the text/dialolgue, then clear the screen again, then re-display the game-board. (CLS clears the screen.)

Report •
Related Solutions


Ask Question