Spbker

Villager
Member
Joined
Sep 11, 2021
Messages
16
Reaction score
7
First Language
russian
Primarily Uses
RMMZ
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();"
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,248
Reaction score
9,018
First Language
English
Primarily Uses
RMMV
@Spbker Are you looking for help writing a plugin or are you looking for a plugin that adds a Credits scene to the menu?
 

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
1,058
Reaction score
689
First Language
Polish
Primarily Uses
RMMV
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.
 

Spbker

Villager
Member
Joined
Sep 11, 2021
Messages
16
Reaction score
7
First Language
russian
Primarily Uses
RMMZ
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.
Menu.png
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,802
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
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).
 

Spbker

Villager
Member
Joined
Sep 11, 2021
Messages
16
Reaction score
7
First Language
russian
Primarily Uses
RMMZ
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).
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,686
Reaction score
1,801
First Language
Dutch
Primarily Uses
RMMV
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:
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.
 

Spbker

Villager
Member
Joined
Sep 11, 2021
Messages
16
Reaction score
7
First Language
russian
Primarily Uses
RMMZ
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);"
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,686
Reaction score
1,801
First Language
Dutch
Primarily Uses
RMMV
mapID 12345 dont exist (up to 999 I believe), and never use $$,
just exactly I used above.
 

Spbker

Villager
Member
Joined
Sep 11, 2021
Messages
16
Reaction score
7
First Language
russian
Primarily Uses
RMMZ
maybe I didn't understand where to get the map ID from?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,686
Reaction score
1,801
First Language
Dutch
Primarily Uses
RMMV
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:
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.
 

Spbker

Villager
Member
Joined
Sep 11, 2021
Messages
16
Reaction score
7
First Language
russian
Primarily Uses
RMMZ
  • Thank you, everything worked out. I hope I didn't cause a lot of trouble)))
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,686
Reaction score
1,801
First Language
Dutch
Primarily Uses
RMMV
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

both love and pain have no boundaries
Happy Saint Nicholas Day! May there nice stuff in your shoes when you wake up!
Choosing Beggars are the best source of entertainment.
DavidUchina wrote on caethyril's profile.
You chad, thanks a lot for your plugins. You helped me costumize the buttons in my game.
I created the first teaser for my game! I decided to make an animation of Cabaret Helen advertising the Pizza Time Theater, set to an actual radio commercial. But this is no ordinary advertisement...

Forum statistics

Threads
117,216
Messages
1,105,546
Members
153,362
Latest member
Luxxusburger
Top