Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Temple run based scrolling
- 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.
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.
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)
- birchyboii
- Scratcher
100+ posts
Temple run based scrolling
what could you suggest for the scrolling itself?
- CrystalStar-
- Scratcher
100+ posts
Temple run based scrolling
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)
- 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
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
With your method, the blocks overlap.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!).
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
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)
Multidimensional Lists v2.0 || Sokoban Ultimate v1.0
Perfect Health Bars (stamping/costume) | 1s1s Onscreen Keyboard | Infinite Background Scrolling | Have a website?
- MattTeamMimic
- New to Scratch
7 posts
Temple run based scrolling
Your AWESOME!!!!!!!! BUMP!
Like Me?
This is Awesome!!!!!!!
Super!
- Discussion Forums
- » Help with Scripts
- » Temple run based scrolling