- Joined
- Apr 20, 2020
- Messages
- 31
- Reaction score
- 14
- First Language
- Spanish
- Primarily Uses
- RMVXA
Hello,
I've been struggling with this lately, as I noticed the Game_Message class is unable to process escape characters. I know this is done by the Window_Message instead, but I don't know how to use this on a script call.
When I try to use any escape character it'll return a syntax error.
This is the method I'm using right now:
Sorry if this is kind of a stupid question, but I don't really know a lot about coding ;(
I've been struggling with this lately, as I noticed the Game_Message class is unable to process escape characters. I know this is done by the Window_Message instead, but I don't know how to use this on a script call.
When I try to use any escape character it'll return a syntax error.
This is the method I'm using right now:
Ruby:
# Draw Message
def message(string)
$game_map.screen.pictures[@z-1].show("Battle/Message",0,-280,0,100,100,100,0)
$game_map.screen.pictures[@z-1].move(0,0,0,100,100,100,0,10)
xy = [$message.x,$message.y]
$message.x = 0
$message.y = 412
$game_message.background = 2
$game_message.add("\C[0]#{string}\.\.\.\^") # --> Invalid escape character syntax
Fiber.yield while $game_message.busy?
$message.x = xy[0]
$message.y = xy[1]
end # Method
Sorry if this is kind of a stupid question, but I don't really know a lot about coding ;(