I tried to get some scrolling happening, but I clearly don't understand how to do smooth movement properly. What demos and/or examples should I be looking at?
I don't know the preferred way to distribute SDLFW-based things, but if you want to see the jerkyness, you would have to copy the contents of the zip (main.lua, framework.lua, and the media folder) into SDLFW/_bin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Projects" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
I tried to get some scrolling happening, but I clearly don't understand how to do smooth movement properly. What demos and/or examples should I be looking at?
My code is here: https://dl.dropboxusercontent.com/u/22170444/crude_scrolling.zip
I don't know the preferred way to distribute SDLFW-based things, but if you want to see the jerkyness, you would have to copy the contents of the zip (main.lua, framework.lua, and the media folder) into SDLFW/_bin.
I did some corrections in your code (required SDLFW v1.7 download HERE):
https://www.dropbox.com/s/jiijnd2k4bh9sc5/base.zip
And I did packaged your code as base.zip so you need download and decompress SDLFW 1.7, go to SDLFW/_bin, remove main.lua and put this base.zip.
So, do you want something like that? :
http://www.youtube.com/watch?v=1u5cGZPdyEk
I have found some example that maybe can help you
Sdl Smooth Scrolling Tips? :
http://www.gp32x.com/board/index.php?/topic/49951-sdl-smooth-scrolling-tips/
Scrolling Backgrounds :
http://lazyfoo.net/SDL_tutorials/lesson22/
Scrolling background SDL:
http://forum.gpwiki.org/viewtopic.php?f=2&t=11514
If you need more help, contact me again :)
Last edit: CorEduard 2014-01-02
View and moderate all "Projects" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
This is very cool, thanks much!