#author("2026-06-18T07:45:28+09:00","default:admin","admin") #author("2026-06-18T07:46:14+09:00","default:admin","admin") ''[[Beginner Tutorial INDEX:https://rpgbakin.com/pukiwiki_en/?RPG+Developer+Bakin+Beginner+Tutorial]]>>'' *Debug Features [#yf46be98] ''Game development is a cycle of creating, test-playing, finding bugs, fixing them, and then playing again.'' ''This section introduces useful debug features to help you find bugs during test play.'' ''You can always come back to this page later if you prefer.'' **Turning Event Switches On/Off [#o7ffe7a4] ''First, let's look at how to use event switches to skip parts of the game and jump ahead in the progression.'' Place the starting point next to the old man on Map_2, then right-click and choose Test Play. Press the ''&size(18){F5};'' key to open the ''&size(18){"Debug Window"};''. Press the ''&size(18){F5};'' key to open the ''&size(18){[[Debug Window:https://rpgbakin.com/pukiwiki_en/?Map+Editor+Overview#h5062e9c]]};''. #ref(./Debug Features_1.jpg,40%) #br ''The [[Debug Window]] allows you to monitor and control specific behaviors in the game during test play.'' Start by checking the "Disable Encounters" option under the default Settings tab, then click the "Reflect in Test Play" button in the bottom right corner. Now try running around on the map—you’ll notice that you no longer encounter any enemies. #ref(./Debug Features_2.jpg,40%) #br ''Next, open the "Variable Monitor" tab.'' You’ll see a tree list showing the event switch names you've set up so far, along with their corresponding numeric values. Find the switch labeled "Gave the Item", click its current value of "0", and change it to "1". #ref(./Debug Features_3.jpg,40%) #br This forces the stone block to start moving, even though you haven’t followed the intended event sequence. ''The reason the stone block moved is because changing the switch state using the debug feature fulfilled the event condition.'' An event switch value of "0" means OFF, and "1" means ON. What you just did was force the "Gave the Item" switch—normally turned ON only after giving the item to the old man—to turn ON via the Debug Window. In the Debug Window, you can modify values such as event switches that control the flow of the game to test how things behave. Also, as you play and switches change during events, their updated values will be reflected in the window—making it a useful tool for monitoring if your events are working correctly. When you end test play, all changes made in the Debug Window will be reset. Be sure to check out the [[Debug Window:https://rpgbakin.com/pukiwiki_en/?Map+Editor+Overview#h5062e9c]] page and make full use of this helpful tool. **Increasing the Items [#a897e75b] ''Next, let's explain how to change the number of items your player cast has.'' After starting the test play, press the ''&size(18){F6};'' key to open the''&size(18){ [[Cast Parameter Check View:https://rpgbakin.com/pukiwiki_en/?Map+Editor+Overview#d14a347b]]};''. #ref(./Debug Features_4.jpg,40%) #br ''The [[Cast Parameter Check View:https://rpgbakin.com/pukiwiki_en/?Map+Editor+Overview#d14a347b]] lets you monitor the parameters of enemy and ally casts currently on screen, and allows you to edit some of these parameters.'' From the Edit menu, select Item, then go to the "Increase/Decrease" tab, increase the number of "Golden Key" by one, and close by clicking OK. #ref(./Debug Features_5.jpg,40%) #br Without talking to the old man, check the treasure chest. You’ll find it opens even though you haven't received the key. Press the Esc key to open the menu and check your player cast’s items—you’ll see that you now have a Golden Key. The [[Cast Parameter Check View:https://rpgbakin.com/pukiwiki_en/?Map+Editor+Overview#d14a347b]] can also be used to monitor and modify status changes during battles. Be sure to make good use of it! **Checking Collisions [#u74aee8d] ''There is also a feature to check the collision detection area (hitbox) changes you made to the event placed at the cave entrance earlier.'' During test play, open the window’s top menu and select Options > View Collision > Player and Events. The collision hitboxes for events will be displayed with red frames. #ref(./Debug Features_6.jpg,40%) #br If you notice problems such as no contact registering with events or the player slipping between objects, use this feature to check the size of the collisions. ---- ''Effectively using debug features greatly improves your game development efficiency.'' ''Try using them actively to experience how helpful they can be.'' ---- ''&size(16){Next: [[Use variables:https://rpgbakin.com/pukiwiki_en/?Use+variables+%28Beginner+Tutorial%29]]};'' ''&size(16){Previous: [[Creating an Event 3:https://rpgbakin.com/pukiwiki_en/?Creating+an+Event+3+%28Beginner+Tutorial%29]]};'' ---- ''[[Beginner Tutorial INDEX:https://rpgbakin.com/pukiwiki_en/?RPG+Developer+Bakin+Beginner+Tutorial]]>>''