@jakAttak the gist link does not work for me
@Jmv38 - try this
https://gist.github.com/JakAttak/21a3ad3027a6ac3e273e
(two letters were transposed)
Oops. Thanks for catching that @Ignatz. Fixed it in my comment.
EDIT: I made a mistake in the first version which broke fade and flash functionalities (I hadn’t noticed because I only tested the ones that moved the object) - I fixed it in the gist, so if you already downloaded it you should grab the new juice.mover file
I have grabbed the last version from TLL (updated 4 hours ago from your pull). Is this ok?
I’m very (VERY) interested in that lighting shader (I know, probably not the bulk of your work, I’m sorry though, that lighting is awesome)
@JakAttak - I’ve had a look at your code, and it seems to work nicely. Some animations start with a downward movement, which triggers a collision with the floor, and I’ve had to disable that initial movement first. So I haven’t tried your code in my project yet, I will do so soon.
@Ignatz, which movements trigger your floor collisions? When I was doing my tests, I noticed a couple ‘squish’ down at the beginning, but they didn’t seem to move downwards
Huh, I see it. I guess the movement was just so little it didn’t trip my bottom collisions.
It’s quite easy to disable. For example, in line 55 of bounce, you simply set
local moveDown = savedPos.y
instead of the formula given there, this prevents any movement down
@Ignatz you are awesome, and this project amazing! I thought how create big scrolling levels in codea recently , but you solve my problem. Thank you. Like said @llEmill you are master
@lupino8211 (and @llEmill) - thank you for the encouragement. I have started a set of blog posts on how I built this, including the mistakes I made. I have just posted the first one here, and I plan to post more over the next couple of weeks.
http://coolcodea.wordpress.com/2014/09/09/156-creating-a-2d-platform-game-part-1/
Been following the blog, and just grabbed the code. interesting stuff. I was particularly interested by the lighting, will definitely be digging into that The control scheme was also interesting, I probably would have just tossed a joystick in there but your way is pretty unique. all in all, great stuff.
Thanks, @JakAttak - I was never much good at controlling joysticks!
Yes, I’ve finished a series of posts on this project, available at http://coolcodea.wordpress.com
I would have liked to explain a bit deeper, but I’m never sure who is reading it and how much they know…
Anyway, side scrollers are a lot of fun to build…and I think Codea is perfect for building them.
I don’t know if it’s at all relevant, but I recently made a pretty simple joystick (which you could easily edit and change to your needs). Not saying your control scheme is bad (I quite like it), just that I think it’s nice to have different options
So if there’s any interest (at all), just ask and I’d be happy to give you the class!
@Monkeyman32123 - I won’t need it, thank you, but others might, so feel free to share it anyway (in a new thread, I suggest).
NB Providing example code that uses it will make it easier for other people to see how it works.
@Ignatz Alright, will do(when I get home to my beautiful iPad)! And thank you for the link to that lighting thing, by the way. I forgot to thank you earlier