Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Basic Parallax Scrolling Tutorial

Author
Message
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Jul 2013 15:51 Edited at: 1st Jul 2013 15:55
Hi all. I've done another tutorial showing you the basics of parallax scrolling. I plan to do at least one more, moving on to other more useful ways to do this.
Check it out here.

If the video looks blurry try upping the quality in Youtube to 1080p.

Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 1st Jul 2013 20:26
Nice, simple easy to follow.

You might be able to smooth out that jumping by using getframetime() in the movement line.

(unless that was just youtube )
RickV
TGC Development Director
24
Years of Service
User Offline
Joined: 27th Apr 2000
Location: United Kingdom
Posted: 1st Jul 2013 21:13
Nice one! I've shared it on TGC's social feeds.

Rick

Financial Director
TGC Team
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 2nd Jul 2013 01:22
Thanks Marl, it runs fine when I am not capturing, my PC seems a bit chuggy at present. But it is never great when capturing.
Thanks Rick! That should help views quite a bit.

haliop
User Banned
leo877
16
Years of Service
User Offline
Joined: 6th Mar 2008
Location: san antonio, tx
Posted: 2nd Jul 2013 05:59
@DVader

I just watch the video. very easy techinque you show. I just have one comment; were you setting the order of sprites to scroll.

would the command
Quote: "SetSpriteDepth ( iSpriteIndex, iDepth )"

work also.

for example a codebit i use in my code :
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 2nd Jul 2013 11:45
@leo877. Yes, you can set the depth manually. AppGameKit automatically sets the sprites depth according to the order they are created. I merely took advantage of this fact in the tutorial, and saved myself a few lines of code.
But yes, if you want absolute control of depth order you can simply set each sprite to the depth you wish. Zero is basically the front layer, and higher numbers will go back into the screen depth the higher they go.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Jul 2013 13:36
Quote: "AGK automatically sets the sprites depth according to the order they are created."

Sprites are drawn in the order created yes, but are still set with the default depth of 10 I believe.

DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 2nd Jul 2013 17:00
@ Phaelax. You are correct, it still works though I was just avoiding using the set depth commands really. I did mention in the video, I was being lazy
I've done the second tutorial earlier today, it's been encoding for ages now, and has a way to go I'll post a link when it is finally done and uploaded.

Ranietz
AGK Gold Backer
20
Years of Service
User Offline
Joined: 2nd Sep 2004
Location: Norway
Posted: 2nd Jul 2013 22:36
Thank you for making these tutorials. Keep'em coming.
miki
19
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 3rd Jul 2013 14:47
Thanx DVader.
More please!

regards,
miki.

in the end
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 3rd Jul 2013 15:11
Thanks Ranietz, and miki for your support! It is appreciated.
I have a second parallax tutorial up on my page now, which allows you to use multiple images and hence far bigger, more varied levels.

https://www.youtube.com/user/RetroGamebloke

miki
19
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 3rd Jul 2013 15:16
TVM DVader,

Checking it out now.

It's great to put a voice to the Avatar...

in the end
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 4th Jul 2013 17:40
Of course, now you know my voice, you will build up an image of what I look like in your head. Of course you will probably be wrong, and if you ever see my face on a video, it will seem odd! At least that is what happens to me when listening to someones voice on radio or youtube lol.

Login to post a reply

Server time is: 2024-11-24 16:10:14
Your offset time is: 2024-11-24 16:10:14