how to show a debug message?

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
Hi guys, is there a simple script that i can use to pop an alert on screen while testing game?
like alert("ABC");
Thanks
 

Nightblade50

Developer of "Delta Origins"
Veteran
Joined
Nov 10, 2016
Messages
2,133
Reaction score
4,253
First Language
English, French
Primarily Uses
RMVXA
Maybe you should say whether you are using XP, VX, or VX Ace. There are slight changes in the code for each of those versions, even though they are all RGSSx.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Use the console, that is there for debugging.
To print out messages to the console, you can use these script calls:
Code:
print "your text here"  # No auto-line break at the end!
p "your text here"      # Auto-line break used at the end!
puts "your text here"   # Auto-line break used at the end!
The console will print out whatever you tell it to, and it's much less annoying than a popup window.
All 3 of the above methods will do the same, more or less, except the first one will not add a line break at the end automatically, so using multiple print calls will join the texts eventually.
 
Last edited:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
There should be an option to enable it in the editor, something like "Show console".
Enable that and the console will automatically open with the game during playtests.
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
There should be an option to enable it in the editor, something like "Show console".
Enable that and the console will automatically open with the game during playtests.
Sorry @Sixth but now testing my game, it seem those codes you suggested doesn't work
my console is blank
upload_2018-3-11_14-22-36.png

While i have this common event run parallel on map
upload_2018-3-11_14-23-12.png
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
It does work. Instead of putting on complex event, why not confirming if it works or not at first?
You make an event, action button trigger, puts that script call, see if console prints anything
If it prints, then there must be something wrong in your event.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top