- 2,273
- Posts
- 19
- Years
- Age 33
- Maybe rivendell i have heard its nice there
- Seen Apr 11, 2010
should be possable if you use call script...
I have to do an intro cutscene for my game before you start to move with the hero... but I don't know how to do it! Can someone help me?
But the cutscene doesn't show the hero, but the villain... does that work for it, too?
But the cutscene doesn't show the hero, but the villain... does that work for it, too?
Is it possible to change the window's size? I mean you see double what you would, not double the size of what you see.
Like, instead of having a 640x480 window, you'd have a 1280x960? Yes. If so, I'll post the script.
~Azura.
Kind of like that, but not just to make everything look bigger. I want the player to see more space that what he normally would.
I'm pretty sure that's what the script would do. Blizzy changed the size of the window in the Pokémon Starter Kit and all it did was restrict view space.
#================================================================
#BEGIN CLASS
#================================================================
#Script made by Squall [email protected]
#================================================================
begin
class Win32API
#==============================================================
#CONSTANTS
#==============================================================
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
GAME_INI_FILE = ".\\Game.ini" # define "Game.ini" file
HWND_TOPMOST = 0 # window always active
HWND_TOP = 0 # window active when used only
SWP_NOMOVE = 0 # window pos and sizes can be changed
#==============================================================
#Win32API.GetPrivateProfileString
#==============================================================
#Checks your game's title in Game.ini
def Win32API.GetPrivateProfileString(section, key)
val = "\0"*256
gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
gps.call(section, key, "", val, 256, GAME_INI_FILE)
val.delete!("\0")
return val
end
#==============================================================
#Win32API.FindWindow
#==============================================================
#Finds the RGSS Window
def Win32API.FindWindow(class_name, title)
fw = Win32API.new('user32', 'FindWindow', %(p, p), 'i')
hWnd = fw.call(class_name, title)
return hWnd
end
#==============================================================
#Win32API.SetWindowPos
#==============================================================
#Changes Window position and size
def Win32API.SetWindowPos(w, h)
title = Win32API.GetPrivateProfileString("Game", "Title")
hWnd = Win32API.FindWindow("RGSS Player", title)
swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
win = swp.call(hWnd, HWND_TOP, 0, 0, w + 6, h + 32, 0)
#the line below makes the window on top of all others
win = swp.call(hWnd, HWND_TOPMOST, 0, 0, w + 6, h + 32, SWP_NOMOVE)
return win
end
#==============================================================
#Win32API.client_size
#==============================================================
#Checks the Window's width and height
def Win32API.client_size
title = Win32API.GetPrivateProfileString("Game", "Title")
hWnd = Win32API.FindWindow("RGSS Player", title)
rect = [0, 0, 0, 0].pack('l4')
Win32API.new('user32', 'GetClientRect', %w(l p), 'i').call(hWnd, rect)
width, height = rect.unpack('l4')[2..3]
return width, height
end
#================================================================
#END CLASS
#================================================================
end
#==============================================================
#Win32API.client_size
#==============================================================
#The width and height variables set the screen size.
win = Win32API.SetWindowPos(SCREEN_WIDTH, SCREEN_HEIGHT)
if(win == 0)
p "Size change has failed!"
end
end
rect = Rect.new(12, 32 * index, self.contents.width - 8, 32)
y = @index / @column_max * 32 - self.oy
Oh, that's useful information on some other projects of mine actually x3, But um... I changed it but to no avail. It still won't funtion. I'm guessing it has something to do with the text file itself?Quote:
Originally Posted by WHALESDUDE View Post
Another Recouring problem x___x Just wondering how to get the text to appear. It's not showing up anymore o.o
Quote:
Originally Posted by The Dash View Post
What do you mean by the text isn't appearing? Is it just the Text or the text box as well? Check and see if you have any custom scripts that could be causing this. Also, does it occur in other RMXP games as well? If so then it could be a problem with your installation.
I think I know what he means.. is the background of your text box white? if so, then its simple. RMXP's default font is white.. it blends right in with the text box background.
Two ways of fixing it.
Without editing scripts just put \c[x] in front of the message. x is a number between 0 and 7. example '\c[3]Hello, welcome to my palace.' That would display a green tinted font and that is only if the colours haven't been edited in the scripts.
With editing the scripts, just go into the Script Editor (Press F11) then go to Window_Base. Now go to line 64 or the line that says..
Code:
def normal_color
return Color.new(255, 255, 255, 255)
end
and change it to something like this...
Code:
def normal_color
return Color.new(0, 0, 0, 255)
end
That would change the colour of your default font to black.
If its not to do with the text box background, please disregard all of that.