Posted: 17th Aug 2011 23:11
I'm trying to put together a default splash screen to use and this is what I came up with, logo and text move (complete with original music).

Edit: Download removed as it was a version that wouldn't work on any one else's machine. See video in later post.
Posted: 17th Aug 2011 23:26
You have to include the media folder for your project, making sure the (appname).byc file is in there, and deleting any other .byc file in there. The EXE is just the player that is modified to only run your bytecode file.
Posted: 17th Aug 2011 23:29
Ahh.. Do I have to include all images also as there are over 40 images that make up the anims as well as the music file?
Posted: 18th Aug 2011 1:07
In the meantime, here's a video of it (slightly updated with particles)
Posted: 18th Aug 2011 2:37
Yes, we have no other way to get the images.

An app made with AppGameKit requires the EXE, plus everything in the media folder for that project. (except your source code)

Looks pretty good.
Posted: 18th Aug 2011 2:42
Then that gives me media protection concerns, not so much for mobile devices but for Windows programs/games.
Posted: 18th Aug 2011 4:38
If you put your images in an Atlas, that offers a bit more protection, and you won't be violating anybody else's "do not distribute unmodified" clauses. At least I think that's the case.
Posted: 19th Aug 2011 1:32
wow that looks cool Nickydude is it possible you can share the project for that or make an tutorial for the splash system it would be great... Thank you in Advanced
Posted: 19th Aug 2011 2:55
There are a number of very cool application packers out there that will encrypt your media and virtualise your application making it very difficult to crack the contents, and still run the app as a single compressed executable.
Posted: 19th Aug 2011 13:45
wow that looks cool Nickydude is it possible you can share the project for that or make an tutorial for the splash system it would be great... Thank you in Advanced


Sure, here's the code. The anims are separate images.

+ Code Snippet
rem: AGK Splash screen

SetDisplayAspect ( 0.66)

// Load and play splash screen music
splashmusic = LoadMusic ( "splashscreen.mp3")
PlayMusic ( splashmusic, 1)

// Create Logo sprite ready for anim frames
logo = CreateSprite ( 0 )
// Resize sprite
SetSpriteSize ( logo, 50,-1)
// Set the offset to middle of sprite
SetSpriteOffset ( logo, GetSpriteWidth( logo )/2, GetSpriteHeight( logo )/2)
// Position sprite in center of screen using offset
SetSpritepositionByOffset( logo , 50,50)

// Create web address sprite ready for anim frames
wa = CreateSprite ( 0 )
// Resize sprite
SetSpriteSize ( wa, 70,-1)
// Set the offset to middle of sprite
SetSpriteOffset ( wa, GetSpriteWidth( wa )/2, GetSpriteHeight( wa )/2)
// Position sprite in center of screen using offset
SetSpritepositionByOffset( wa , 50, 70)

// Add all 30 frames of the swing anim
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0001.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0002.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0003.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0004.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0005.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0006.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0007.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0008.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0009.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0010.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0011.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0012.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0013.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0014.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0015.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0016.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0017.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0018.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0019.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0020.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0021.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0022.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0023.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0024.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0025.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0026.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0027.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0028.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0029.png"))
AddSpriteAnimationFrame ( logo, Loadimage ( "LogoSwing_frame_0030.png"))

// Add all 13 frames of the web address anim
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0001.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0002.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0003.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0004.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0005.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0006.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0007.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0008.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0009.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0010.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0011.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0012.png"))
AddSpriteAnimationFrame ( wa, Loadimage ( "webaddress_frame_0013.png"))

// Play swinging logo anim
PlaySprite ( logo, 15, 1, 1, 30 )

// Play Web Address anim
PlaySprite ( wa, 1, 1, 1, 30)

// Create particles
// load image for particles
LoadImage ( 1, "particle.png" )

// create a block of particles and set properties
CreateParticles           ( 1, 50, 50 )
SetParticlesImage         ( 1, 1 )
SetParticlesStartZone     ( 1, -30, 22, 30, 22 )
SetParticlesDirection     ( 1, 0, 9.0 )
SetParticlesLife          ( 1, 9 )
SetParticlesSize          ( 1, 14 )
SetParticlesAngle         ( 1, 15 )
SetParticlesFrequency     ( 1, 30 )
SetParticlesVelocityRange ( 1, 1, 2 )
// Change the colour as soon as particle is made
AddParticlesColorKeyFrame ( 1, 0, 0, 100, 255, 0 )
// Change colour of particle 0.5 seconds after made
AddParticlesColorKeyFrame ( 1, 0.5, 0, 100, 255, 255 )
// Change colour again of particle 1 second after made
AddParticlesColorKeyFrame ( 1, 1.0, 50, 50, 100, 255 )
// Fade colour to black 2.5 seconds after being made
AddParticlesColorKeyFrame ( 1, 2.5, 0, 0, 0, 0 )


Do
    Sync ()
Loop