Posted: 18th Aug 2011 2:08
This is a Demo to show that agk is indeed very powerfull indeed.




To embed videos use [.youtube] [.youtube] (without the dot) and use the youtube web address for your video but remove everything before (and including) the equals sign.
Posted: 18th Aug 2011 2:33
That's nicely done. I have something like that in mind for my next project.
Posted: 18th Aug 2011 3:36
Nice video. Would you like to share your source code? Someone could make a useful library of features like this. Flixel has something similar, and it's very useful.

Regards,
Greenlig
Posted: 18th Aug 2011 9:36
greenlig, check the elf game sample. it has the scrolling code you need
Posted: 18th Aug 2011 10:44
ill put it up soon just going to work do it there
Posted: 18th Aug 2011 12:22
sorry for the delay, sleep then work got in the way.

+ Code Snippet
rem
rem AGK Application
rem

rem Landscape App
SetDisplayAspect( 4.0/3.0 )

rem A Wizard Did It!

x#=0
y#=0
x1#=0
y1#=5
x2#=0
y2#=0

// setup all your layers for use
background = loadimage("backdrop.png")
mountains = loadimage("mountain.png")
city=loadimage("city.png")
createsprite(1,background)

// ive sized each layer a little longer the fastest layer has to be longer than the 
// slower layer itherwise it runs out before the slower layer.
//this could be easyly made to repeat for continous scrolling games.

setspritesize(1,800,100)
createsprite(2,city)
setspritesize(2,1600,100)
createsprite(3,mountains)
setspritesize(3,1800,100)
setspriteposition(1,0,0)
setspriteposition(2,0,0 )
setspriteposition(3,0,0)
do

// this moves the 3 sprites  x and y variables all set to different speeds
// to add a little realism
x#=x#-0.3
x1#=x1#-0.4
x2#=x2#-0.6


setspriteposition(1,x#,y#)
setspriteposition(2,x1#,y1# )
setspriteposition(3,x2#,y2#)
 Sync()
loop
Posted: 19th Aug 2011 3:28
Very nice!
Posted: 19th Aug 2011 14:52
thanks Lee that means alot coming from you
Posted: 19th Aug 2011 17:35
it's very useful. Can i use this for my??
Posted: 19th Aug 2011 18:52
its here for the taking, would love a credit though, E. Zubrzycki
Image Design Software
Posted: 19th Aug 2011 19:17
Zubby1970 I'm putting together an AppGameKit guide (like I did for FPS Creator: http://forum.thegamecreators.com/?m=forum_view&t=170978&b=21&msg=2025564#m2025564) and I'm wanting to create an examples section. Would I be able to include you code? Full credit will be given of course.
Posted: 20th Aug 2011 0:49
by all means, and when i can find time there wil be plenty more im going to be making lots of functions that will do special FX for games. keep in touch support@image-design.co.uk