hello all, i have decided to start a core script, and am looking for advice as to what would be usable in all games,
but for it to fit the forum i would like to get some help with piecing this script together.
so the first question will relate to a splash screen, first I'd like to say i have very limited scripting experience and yes i know a core script is not the easiest thing to make as your first script but I learn as I go so I like jumping in and risking all for the gain. I will say that I do know some of the beginner scripts as I have watched most of dp3's YouTube videos and studied some of java.
and back to the splash screen:
this is where I am so far
(note: this will be changing as I move through the script)
ok so at this moment I am having two bugs show up so far
one I am having to add extra ends to the second method(i will see how to do this)
two when problem one seems to get ignored(added ends) I get this error:
SceneManager'line23: NoMethodError occurred
Unidentified method 'main' for #<WWSTDCore::SplashScreen:0x8a.079c>
I know it is in my SceneManager edit but I haven't worked with it much
but for it to fit the forum i would like to get some help with piecing this script together.
so the first question will relate to a splash screen, first I'd like to say i have very limited scripting experience and yes i know a core script is not the easiest thing to make as your first script but I learn as I go so I like jumping in and risking all for the gain. I will say that I do know some of the beginner scripts as I have watched most of dp3's YouTube videos and studied some of java.
and back to the splash screen:
this is where I am so far
module WWSTDcoreSettings
Activate_Splash_Screen = true
SplashImage =
[
#set image name here
"WarStormGames",
"enterbrain"
]
end
module WWSTDCore
class Scene_SplashScreen
def start
super
if WWSTDcoreSettings::Activate_Splash_Screen == false
SceneManager.goto(Scene_Title)
end
imgnum = 0
make_splash_logo(imgnum)
end
def make_splash_logo(logo)
@Sprite = Sprite.new
@Sprite.bitmap = Cache.picture(WWSTDcoreSettings::SplashImageHow to upload the image to the forums
Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).
Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.
IMG tags:
)
@sprite.opacity = 0
center_sprite(@sprite)
end
def update
Graphics.opacity = 0
Graphics.wait = 15
if imgnum <= WWSTDcoreSettings::SplashImage.length
Graphics.opacity =+ fade_time
if Graphics.opacity > 255
Graphics.wait = 15
Graphics.opacity =- fade_time
unless Graphics.opacity <= 0
end
end
imgnum =+ 1
if imgnum <= WWSTDcoreSettings::SplashImage.length
SceneManager.goto(Scene_Title)
end
end
def center_sprite(sprite)
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height / 2
sprite.x = Graphics.width / 2
sprite.y = Graphics.height / 2
end
end
end
end
module SceneManager
#--------------------------------------------------------------------------
# * Get First Scene Class
#--------------------------------------------------------------------------
def self.first_scene_class
$BTEST ? Scene_Battle : WWSTDCore::Scene_SplashScreen
end
end
Activate_Splash_Screen = true
SplashImage =
[
#set image name here
"WarStormGames",
"enterbrain"
]
end
module WWSTDCore
class Scene_SplashScreen
def start
super
if WWSTDcoreSettings::Activate_Splash_Screen == false
SceneManager.goto(Scene_Title)
end
imgnum = 0
make_splash_logo(imgnum)
end
def make_splash_logo(logo)
@Sprite = Sprite.new
@Sprite.bitmap = Cache.picture(WWSTDcoreSettings::SplashImageHow to upload the image to the forums
Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).
Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.
IMG tags:
@sprite.opacity = 0
center_sprite(@sprite)
end
def update
Graphics.opacity = 0
Graphics.wait = 15
if imgnum <= WWSTDcoreSettings::SplashImage.length
Graphics.opacity =+ fade_time
if Graphics.opacity > 255
Graphics.wait = 15
Graphics.opacity =- fade_time
unless Graphics.opacity <= 0
end
end
imgnum =+ 1
if imgnum <= WWSTDcoreSettings::SplashImage.length
SceneManager.goto(Scene_Title)
end
end
def center_sprite(sprite)
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height / 2
sprite.x = Graphics.width / 2
sprite.y = Graphics.height / 2
end
end
end
end
module SceneManager
#--------------------------------------------------------------------------
# * Get First Scene Class
#--------------------------------------------------------------------------
def self.first_scene_class
$BTEST ? Scene_Battle : WWSTDCore::Scene_SplashScreen
end
end
ok so at this moment I am having two bugs show up so far
one I am having to add extra ends to the second method(i will see how to do this)
two when problem one seems to get ignored(added ends) I get this error:
SceneManager'line23: NoMethodError occurred
Unidentified method 'main' for #<WWSTDCore::SplashScreen:0x8a.079c>
I know it is in my SceneManager edit but I haven't worked with it much