Hey
i have gotten a problem that i cant solve by my self. i need to display 2 title backgrounds. 1 were you chose server and 1 were you login/register. is that possible and if what would be the most easy way to do it?
Thanks in advance
Kroko
loool
If it is the same Scene, you basically dispose or change the opacity from the login picture to 0, and change the server's pic opacity to 255.
If they are different scenes(that's what I would do lol) basically you just have to create Sprites as the background.
@pic = Sprite.new
@pic.bitmap = RPG::Cache.picture("name_of_the_picture_in_pictures_folder")
@pic.bitmap.z = 10
then after graphics.freeze you type @pic.dispose
i might sounds like a noob now. but im so lost
Well, I don't know which methods and classes Blizzard made in RMX-OS, so i'm just going to post here an example of how to do something like that.
class Scene_Login
def main
@background = Sprite.new
@background.bitmap = RPG::Cache.picture("name_of_the_pic_in_pictures_folder") #1st picture that you wanna use
@background.z = 10
#I'm just writing an example of how the login_window can be.
@login_window = Login_Window.new
@login_window.ox = @login_window.width / 2
@login_window.oy = @login_window.height / 2
@login_window.x = 320
@login_window.y = 240
@login_window.z = 20
@login_window.active = true
@login_window.visible = true
@login_window.index = 0
@server_window = Server_Window.new
@server_window.active = false #Means that the cursor won't be on that window
@server_window.visible = false#Means that the window won't be visible
@server_window.index = -1 #Just to 'block' the index, so it will be disabled
@server_window.z = 30
Graphics.transition
while $scene == self
Graphics.update
Input.update
update
end
Graphics.freeze
[@background.bitmap, @login_window, @server_window].each {|d| d.dispose}
end
def update
@server_window.update if @server_window.active && @server_window.visible
if Login.attempted?
if Input.trigger?(Input::C) #Enter, backspace
@background.bitmap = RPG::Cache.picture("name_of_server_background_pic") #2nd picture that you wanna use
@login_window.active = false
@login_window.visible = false
@login_window.index = -1
@server_window.visible = true
@server_window.active = true
@server_window.index = 0 #Index goes into the server window
end
end
end
end
If there's anything that you don't understand on that, tell me and I'll try to explain it to you.
See you
Apidcloud, Login, Registration, and Servers are 3 separate scenes that are child of Scene_Network. All you need to do is change the @background variable in each with a small alias. And actually since he only wants 2 separate images we only need to do Scene_Servers and Scene_UserPass
Paste this below RMX-OS. And insert your image names in the variables at the top of the script.
SERVER_TITLE = ""
LOGIN_TITLE = ""
class Scene_Servers < Scene_Network
alias gg_change_title_servers_lat create_scene
def create_scene
gg_change_title_servers_lat
@background.bitmap = RPG::Cache.title(SERVER_TITLE)
end
end
class Scene_UserPass < Scene_Network
alias gg_change_title_userpass create_scene
def create_scene
gg_change_title_userpass
@background.bitmap = RPG::Cache.title(LOGIN_TITLE)
end
end
No offense but whatever you're doing there isn't even what he wanted and you're script isn't close to how RMX-OS has the scenes setup.
-.- I just posted an example of how to change the background picture -.-
As I didn't know how the scenes and windows were from RMX-OS I did that example, hard to understand?
QuoteWell, I don't know which methods and classes Blizzard made in RMX-OS, so i'm just going to post here an example of how to do something like that
Obviously I'm referring to his request
*Points to read and arrogance*
Title of the thread might of given you a tiny hint to what script the OP was having trouble with.
Well posting an example can be helpful, yours wasnt and since you didn't know how RMX-OS was structured. And because you had no clue how RMX-OS was structured your post wasn't all that helpful.
This here.
QuoteApidcloud, Login, Registration, and Servers are 3 separate scenes that are child of Scene_Network. All you need to do is change the @background variable in each with a small alias. And actually since he only wants 2 separate images we only need to do Scene_Servers and Scene_UserPass
Wasn't intended to insult the amount of things you knew about RMX-OS. I wasn't trying to be pretentious. I was stating what needed to be done and how RMX-OS scenes are structured to maybe give you somewhat of a clue. I wasn't trying to be an ass. Like I said before your example wasn't helpful at all. RMX-OS is one huge script, how the hell is he supposed to know where to go to change the background of a scene? Even if he knew a little about scripting he would be able to but then this topic wouldn't have been started.
As I stated I meant no offense and I don't have future plans into turning this topic into a flamewar/argument over something stupid. I was just stating something.
I didn't, even, say that I knew about it's classes/scenes or whatever. As I said before the code, I was just doing an example to his request, that was changing the bitmap of the background. I did it, although RMX-OS isn't structured like that.
I just tried to help even not knowing how the rmx-os structure was, so he could get some ideas of how to solve his problem. If not, he could post saying that he didn't know
Now you're saying 'not trying to insult the amount of things you know about rmx-os' ? You're being sarcastic on that sentence.
It's not the first time that you're insulting me using irony or sarcasm either. Besides, that's not a good example for someone titled 'moderator'.
Okay if I wanted to insult you, you pretentious faggot, I would. I wasn't using sarcasm in that sentence but you know what I am now. You're the greatest fucking scripter the world has known! Oh please lend me a helping hand with your confusing examples and your nonsense fucking sentences!
Please knock your 8 year old attitude off. I
QuoteWasn't intended to insult the amount of things you knew about RMX-OS
I guess you don't know what "intended" or "wasn't" means.
As I stated I meant no offenseAs I stated I meant no offenseAs I stated I meant no offenseIn any of my posts here no offense or insults were meant. Which is why people say no offense in case their following statement or statements may insult someone. They are simply stating a sentence without trying to hurt anyone. I wasn't insulting you. Wasn't using sarcasm, irony, or anything to insult you. Want to know why I have the moderator status? I'm helpful, 95% of the time I'm polite, other 5% rude when dealing with faggots like you, I'm active here. And I don't cause trouble. Now you can drop this subject and continue to be fellow members or you can push this argument and possibly get a ban. Since you're so uptight and ignorant I think you should get off the internet. You obviously can't interpret people's posts without having a hissy fit. You put sarcasm where it shouldn't and you take sarcasm serious. So please drop it.
There is absolutely no sarcasm in that sentence. Amount of things isn't sarcastic at all, the only way my sentence would be sarcastic is if I wanted it to be. Its not my fault that you interpret it that way. And who are you to talk about language lessons? Your grammar is of a nine year old, no probably worse since my nine year old brother can talk and write better grammar then you. You're only 1 year older then me. You're either going to be a junior or a senior in highschool if your dumbass hasn't already dropped out. I'll be a junior, a proud one with near perfect grammar.
By the way, thanks for making my day, I'm sure the other staff members will agree to put a ban on you. I asked you to drop it and you didn't. I wasn't trying to insult you, but you took it as an insult. Then I tried to explain that it wasn't because I didn't mean it that way. You still took it as an insult. I think you're the jackass here. Good day sir!
(http://chzmemebase.files.wordpress.com/2011/08/memes-sorry-i-dont-have-any-change.jpg)
Topic locked. Gamer Geeks if you still need help please post a new topic in the script requests. Apidcloud if you wish to discuss this even more then please contact one of the other staff members who I'm sure will take my side.
I just wanted to say that RMX-OS structure is a bit more complicated than the default scripts. But because of this more modularized structure, it's much easier to modify and to extend RMX-OS. G_G wasn't trying to be insulting, he just wanted to help GamerGeeks solve his problem and to help you understand RMX-OS better.