Zelda Scrolling

Post your own tutorials, guides and demos.

Post » Thu Jul 16, 2009 9:51 pm

I whipped together a little zelda scrolling example. I'm betting someone could bust this down into 2 events instead of 5... Heck, now that I think of it, I bet someone could even make this 1 event. While I'd like to see that out of curiousity, here it is, in all 5 events of granduer. 1 and 2 event would really push the bounds of 'human readable'. :lol:

I had to make this for a friend. so I figured I'd share.

http://kayin.pyoko.org/zeldascrolling.cap
B
12
S
4
G
4
Posts: 238
Reputation: 2,426

Post » Sun Jul 19, 2009 2:15 pm

That's pretty cool :D
Can't wait to see a zelda game made with construct :wink:
B
3
G
3
Posts: 34
Reputation: 943

Post » Mon Jul 20, 2009 2:56 am

I'm digging the math.
an understanding of math always makes for an interesting scirra member

if you didn't know
there are DisplayWidth, and DisplayHeight expressions
to keep you from having to type in the numbers manually
and make it more flexible

they can be found in system
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Jul 20, 2009 7:55 am

Do you really need timescale?
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Jul 20, 2009 8:32 am

he's future proofing it
it if there were things moving around
the timescale would be needed I'd say
for zelda type scrolling
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Jul 20, 2009 11:50 am

I don't really see the point. So what if objects are still moving while the screen is scrolling? It only takes a second or so to scroll. Besides that you'll need to add another event to deal with time scale freezing when you get to the bottom, or the right side.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Jul 20, 2009 12:24 pm

I did the zelda style scrolling in one event hehe

I think we need a new system expression which is similar to clamp and similar to lerp. I need a name for it...but basically you give it a value, another value, and the amount to move the first value towards the second value...

so it's like this:

return source + clamp(destination - source, -dist, +dist)

hmm...

one disadvantage to my system is it doesn't pause the game :(
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Jul 20, 2009 12:32 pm

Did the original pause during scrolling?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Mon Jul 20, 2009 12:36 pm

yeah it does
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Mon Jul 20, 2009 3:34 pm

[quote="David":ynuz5xxx]I did the zelda style scrolling in one event hehe

I think we need a new system expression which is similar to clamp and similar to lerp. I need a name for it...but basically you give it a value, another value, and the amount to move the first value towards the second value...

so it's like this:

return source + clamp(destination - source, -dist, +dist)[/quote:ynuz5xxx]

Clerp?.. no wait Clarp!
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests