Clips you through Walls! This is a wind effect I found using lunalua. Clips you through Walls! I know this is basic information to a lot of users. For a begginner like me, I have questions about these types of things. After some research here is what I had came up for anyone who wants the same in they're level. Kevsoft posted wind.lua on the wohlsoft forum. The post was here:
http://wohlsoft.ru/forum/viewtopic.php?t=329 and the link is not working. It is possible to make a wind effect using lunalua. I contacted Kevsoft on Discord. He gave some friendly advice.
I am sure you can build an API around this. For me I Put this into my lunadll.lua file for the level with wind:
function onTick()
player.x = player.x + 2
end
^ This will move your character every tick to the right. Fast speeds around (3 to 5). Try (+ 1,+ 2 ) to get lower speeds and also negative values (- 1, - 2, ) to make your character go left.
You could possibly try using this for up and down as well by typing this:
function onTick()
player.y = player.y - 1
end
Which will push you up or down, same rules as above. I haven't found a use for it yet. When it pushes you down, you don't jump as high so it can be used in that case. The pushing me up doesn't make me float, just glitches the character on the ground. Maybe could be used for falling levels so maybe you don't fall as fast, I'd like to test. Obviously this is small amount of code using lunalua and is basic. There is more ways you could use this information with all the other lunalua code to maybe turn on and off the wind in your level. Or only have wind at certain spots etc. the possibilities only limited by lunalua which I am still learning. Thanks.