There is a "credits" button on the title page. What to write in the plugin so that when clicked, a map with scrolling text appears. For example, on the "exit" button, it is written "SceneManager.exit();"
Credits
Javascript/Plugin Support@Spbker Are you looking for help writing a plugin or are you looking for a plugin that adds a Credits scene to the menu?
You mean is there a scene with credits? No, there isn't such a thing. Default credits just scrolls on the map, use "Show scrolling text" from event command menu.
I apologize for my English. I meant something else. There is a plugin "cgmz_titlecommandwindow" that opens additional commands in the title menu. There is a "credits" command. I do not know what to write in the plugin so that when you click the "credits" button, it throws to a certain scene in the game.
I've moved this thread to Plugin Support. Thank you.
The only thing that plugin does is add more commands to the title menu - it does not provide you any way to display a credits screen.
You would have to write the code for a credits scene yourself (or download another plugin for it...which would already give the option to add it to the title menu).
You would have to write the code for a credits scene yourself (or download another plugin for it...which would already give the option to add it to the title menu).
Thanks for explaining. I'm not good at java. please tell me what to write in the script so that when you click on the button, it transfers to a specific map (scene).
I use a function in my TF that does that, but plain simple.
at 2nd, it's not JAVA but JAVASCRIPT (JS) those are 2 complete different
languages.
most credits plugin uses a title scene command, but if you want to transfer
it to a map, you need this inside the common:
change MapID to the ID of the map,
x for the x position of player, (use -999 for off map)
y for the y position of player, (use -999 for off map)
Dir can be 0 and fade can be any, 0 = black fade, 1 = white, 2 is none I believe.
at 2nd, it's not JAVA but JAVASCRIPT (JS) those are 2 complete different
languages.
most credits plugin uses a title scene command, but if you want to transfer
it to a map, you need this inside the common:
JavaScript:
$gamePlayer._opacity = 0;
$gamePlayer.reserveTransfer(map ID, x, y, direction, fade);
SceneManager.goto(Scene_Map);
change MapID to the ID of the map,
x for the x position of player, (use -999 for off map)
y for the y position of player, (use -999 for off map)
Dir can be 0 and fade can be any, 0 = black fade, 1 = white, 2 is none I believe.
Writes
"Failed to load
data/Map 12345.json", a map called 12345.
I wrote this,
"$"$game Player._opacity = 0;
$ $gamePlayer.reserve Transfer(12345, 0, 0, 0, 0);
SceneManager.goto(Scene_Map);"
"Failed to load
data/Map 12345.json", a map called 12345.
I wrote this,
"$"$game Player._opacity = 0;
$ $gamePlayer.reserve Transfer(12345, 0, 0, 0, 0);
SceneManager.goto(Scene_Map);"
mapID 12345 dont exist (up to 999 I believe), and never use $$,
just exactly I used above.
just exactly I used above.
maybe I didn't understand where to get the map ID from?
the mapID can be found on the map on the bottom.
you would see 003, 34, 10 (this is MapID 3, X position 34 and Y position 10.
mapID, x, y is different for everyone depening on the map they use it for.
the same way, you make map transfers, you can select it by event commands
or by scriptcall, depending what you feel most comfortable with.
for example, you use mapID 5, and you dont want it visible, you use:
this load mapID 5, x and y position on -999, even if it can move, it takes,
999 tiles, if that spot is blocked or around it, it can never reach it, even
if you use -1 or -5.
if you want it on the map rather than the top corner or 0,0 use the coordinates
that fits, next to the mapID on your map you want to go too.
you would see 003, 34, 10 (this is MapID 3, X position 34 and Y position 10.
mapID, x, y is different for everyone depening on the map they use it for.
the same way, you make map transfers, you can select it by event commands
or by scriptcall, depending what you feel most comfortable with.
for example, you use mapID 5, and you dont want it visible, you use:
JavaScript:
$gamePlayer._opacity = 0;
$gamePlayer.reserveTransfer(5, -999, -999, direction, fade);
SceneManager.goto(Scene_Map);
this load mapID 5, x and y position on -999, even if it can move, it takes,
999 tiles, if that spot is blocked or around it, it can never reach it, even
if you use -1 or -5.
if you want it on the map rather than the top corner or 0,0 use the coordinates
that fits, next to the mapID on your map you want to go too.
- Thank you, everything worked out. I hope I didn't cause a lot of trouble)))
not at all, make sure $gamePlayer._opacity = 255 if you want it visible.
otherwise 0, null or false for invisible, but good luck on your project further.
otherwise 0, null or false for invisible, but good luck on your project further.
Original thread: https://forums.rpgmakerweb.com/threads/credits.141080/