Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] help on full screen script

Started by sparten84, May 06, 2007, 01:11:34 AM

0 Members and 1 Guest are viewing this topic.

sparten84

ok heres the deal. I'm very new at scripting rgss. I would like to make a script so when you get to the main menue on your game you will have an option to go full screen. i have already gotted to where i make the option on the main menue i just need to know how to make ruby automaticly press (alt+enter) when you select this option. If you could help me out you will be credited in this script and i will also post the scripts on rmrk. Thanks a ton!
For Free Web Design, E-mail us at freewebdesign@gmail.com

Falcon

It's easier than you think ;)


        $game_system.se_play($data_system.decision_se)
        $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
        $showm.call(18,0,0,0)
        $showm.call(13,0,0,0)
        $showm.call(13,0,2,0)
        $showm.call(18,0,2,0)

That's the code that worked for my game's demo. Don't bother giving me credit for this.

sparten84

how do i set this up i tried putting it in the menue script and it says un identified method
For Free Web Design, E-mail us at freewebdesign@gmail.com

Kidkay

will this work with out call script?
This note is legal tender for all debts, public and private

Falcon

I'm not going to do this whole script for you, that's the syntax you would need if you actually knew RGSS.

Change the title to a request topic and maybe someone will do this for you.

sparten84

For Free Web Design, E-mail us at freewebdesign@gmail.com

sparten84

For Free Web Design, E-mail us at freewebdesign@gmail.com

Kokowam

Hahahaha.... I'll give this a shot. Makes me work on my scripting a bit.

Kokowam

Double post XD Didn't want to edit. Making sure this gets bumped.

HAAHHAHAHAHA SO DANG EASY!!!! XD Well, since the error was "unidentified method," we shall have to make one!


class FullScreen
  def initialize
    $game_system.se_play($data_system.decision_se)
    $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
    $showm.call(18,0,0,0)
    $showm.call(13,0,0,0)
    $showm.call(13,0,2,0)
    $showm.call(18,0,2,0)
  end
end

Add that just before Main (just in case ;)) and call it with a call script that has this:


FullScreen.new


XD Falcon, no wonder you didn't tell him. You're a meanie like Zeriab who makes other people give the answers.

pliio8

I'm noy sure. But are trying to fix it? Because theres already several fullscreen scripts that dont need call script commands.
Games in progress:
Tome of Arastovia: 7% complete at 2 hours of gametime

Kokowam

No he wants a choice on it. He could have just used Blizzard's Tons of Addons.... but w/e.

sparten84

ty guys i already figured it out tho. Mastermo how the heck are you every where!
For Free Web Design, E-mail us at freewebdesign@gmail.com

Snowy Fox

I'm new to scripting myself... in fact, this is apparently my starting point. So how would I go about getting the game to start in full screen without the option?
?uoy t'noD ?ton yhW .yllamron depyt meht gniees fo derit tog I .sdrawkcab erutangis siht nettirw ev'I ,seY