Discuss Scratch

birchyboii
Scratcher
100+ posts

Temple run based scrolling

This

Okay so I had this idea I could scroll the ‘tiles’ downwards, but its not working (I'm not too great on the maths of programming) so if anyone could help, it would be appreciated. Oh and it has to use a tiles like design like what I have already. Think of temple run, that sort of effect.
dracae
Scratcher
1000+ posts

Temple run based scrolling

I love what you did with the size being dependent on the y pos, but that has to go.

The size needs to independently increase. However, the y pos wont have the same linear growth as the size.
(EDIT: If you want the scrolling effect)

Basically, I'm saying you can't have the size rely on the y pos.

Last edited by dracae (Aug. 22, 2013 11:32:13)


dracae
Scratcher
1000+ posts

Temple run based scrolling

So the size could be:

set size to (size + 1)

birchyboii
Scratcher
100+ posts

Temple run based scrolling

what could you suggest for the scrolling itself?
birchyboii
Scratcher
100+ posts

Temple run based scrolling

BUMP!
CrystalStar-
Scratcher
100+ posts

Temple run based scrolling

dracae wrote:

Basically, I'm saying you can't have the size rely on the y pos.

Why not?

I made a fix here. It's not the best and it can be improved, though. (Which I will be doing now!)
http://scratch.mit.edu/projects/11951328/

The different colours are to distinguish between each clone.

Some problems with your version were that the costume's shape looked a little off (the angles of the sides needed to be larger so the overall shape was smoother) and that it looked like you needed more sprites in between (lots of empty gaps!).

Last edited by CrystalStar- (Aug. 22, 2013 13:46:03)


CrystalStar-

Play Scramble here!
birchyboii
Scratcher
100+ posts

Temple run based scrolling

I know about he gaps xD I mapped it out like that so I hoped when it changed to an empty costume (its gonna randomly chose what comes next) there is a distinctive gap that's all. But with the fix, there is only a limited gap
birchyboii
Scratcher
100+ posts

Temple run based scrolling

this is for no reason other than 100 post… xD
CrystalSun-
Scratcher
12 posts

Temple run based scrolling

birchyboii wrote:

I know about he gaps xD I mapped it out like that so I hoped when it changed to an empty costume (its gonna randomly chose what comes next) there is a distinctive gap that's all. But with the fix, there is only a limited gap

You can take out some clones to leave a gap. You could also have it always spawn clones and delete clones when they reach the front, so you can always generate what's coming ahead.
dracae
Scratcher
1000+ posts

Temple run based scrolling

CrystalStar- wrote:

dracae wrote:

Basically, I'm saying you can't have the size rely on the y pos.

Why not?

I made a fix here. It's not the best and it can be improved, though. (Which I will be doing now!)
http://scratch.mit.edu/projects/11951328/

The different colours are to distinguish between each clone.

Some problems with your version were that the costume's shape looked a little off (the angles of the sides needed to be larger so the overall shape was smoother) and that it looked like you needed more sprites in between (lots of empty gaps!).
With your method, the blocks overlap.

If you do not want overlap, size can not rely on y position.
I think

LiquidMetal
Scratcher
100+ posts

Temple run based scrolling

I made this to help, and posted it on your other thread. I'm posting it here so that other people will be able to help if you have some problem with it.

See this project. It's a simple Temple Run Scrolling Engine that runs smoothly. I doesn't have a complicated looking script, but it doesn't need one. This works

Last edited by LiquidMetal (Aug. 23, 2013 04:25:43)

MattTeamMimic
New to Scratch
7 posts

Temple run based scrolling

birchyboii wrote:

BUMP!
Your AWESOME!!!!!!!!
Like Me?
This is Awesome!!!!!!!
Super!

Powered by DjangoBB