0

I want to create a game with allegro using text-based RPG elements.
I would like to describe the setting through text and give the option to input a command but at the same time display graphics above the text area.

Example:

*3 sprites, warrior, mage, archer*

(text description)

Hello, (name entered at an earlier point in the program) what sort of class would you define yourself as?
<user input here, options: Warrior, Mage, Archer>

/Example

What would be the best way to do this with allegro?

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by SgtMe
0

Ouch. That sounds quite hard. To the best of my knowledge, there isn't any way of combining another GUI kit with Allegro. Your best option would be to make your own text entry field. Draw out a box, and when the user clicks on it (check mouse position), a flashing bar comes up (you could leave that out). As the user types, it goes to a string which is drawn on screen (you would have a string of the input, which gets one letter appended to it at a time).
That's just an example :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.