Page 1 of 1

RollaKosta :^)

Posted: Tue Dec 29, 2015 4:02 pm
by Waddle
Hullo fellas
I made a rollercoaster that plays itself; you don't have to press anything! Let's see if one of you can figure out the trick I used :^) It should work fine, but pressing down (or any button; down just breaks the level in a particularly annoying way) ruins the fun.
Spoiler: show
Image
Look at my pwetty scweenshawt
Spoiler: show

Re: RollaKosta :^)

Posted: Sun Jan 10, 2016 12:20 pm
by bossedit8
There, have a playthrough of mine:



Original link: http://www.youtube.com/watch?v=7n0Kcj30HkQ

Re: RollaKosta :^)

Posted: Sun Jan 10, 2016 12:39 pm
by Willhart
Not sure how you made the custom conveyors for this level, but there is a way to make similar effect on lua fairly easily. Following allows for different speed values and works with any block including slopes.

Code: Select all

firstLoop = true

function onLoadSection()
	
	--Set Conveyor belts
    if (firstLoop) then
        firstLoop = false
        
        -- Set all block-512 to push player with the speed of -1
        for i,block in pairs(findblocks(162)) do
            block.speedX = -1
        end
        
        -- Set all block-358 to push player with the speed of  1
        for i,block in pairs(findblocks(163)) do
            block.speedX = 1
        end
    end
    
end
The effect does look very neat on this level though. I'll have to look into it later.

Re: RollaKosta :^)

Posted: Sun Jan 10, 2016 6:14 pm
by Waddle
Thanks for the 'play'through, Bossy <3
Willhart wrote:Not sure how you made the custom conveyors for this level, but there is a way to make similar effect on lua fairly easily. Following allows for different speed values and works with any block including slopes.

Code: Select all

firstLoop = true

function onLoadSection()
	
	--Set Conveyor belts
    if (firstLoop) then
        firstLoop = false
        
        -- Set all block-512 to push player with the speed of -1
        for i,block in pairs(findblocks(162)) do
            block.speedX = -1
        end
        
        -- Set all block-358 to push player with the speed of  1
        for i,block in pairs(findblocks(163)) do
            block.speedX = 1
        end
    end
    
end
The effect does look very neat on this level though. I'll have to look into it later.
I assumed something similar would be possible with lunalua; unfortunately I have no idea how lunalua works. Here's how I did it:
Spoiler: show
While I was toying around in the editor, I found out that placing another block (I chose ice cubes) over a conveyor belt makes them go faster, but in the opposite direction. So I flipped the conveyor graphic and added slippery slopes, and uhh that's basically it.

Re: RollaKosta :^)

Posted: Mon Jan 11, 2016 4:39 am
by Willhart
Waddle Derp wrote:I assumed something similar would be possible with lunalua; unfortunately I have no idea how lunalua works. Here's how I did it:
Spoiler: show
While I was toying around in the editor, I found out that placing another block (I chose ice cubes) over a conveyor belt makes them go faster, but in the opposite direction. So I flipped the conveyor graphic and added slippery slopes, and uhh that's basically it.
That is very interesting to me, and something I did not know from before. Another way I know to make this effect on vanilla is to attach a moving npc to layer and then push it to lava so it dies. All the blocks on the layer attached to that npc will still push the player like they were moving even though they stay still. I don't think it worked as well as this one though on my testing. The slipperiness of ice may have helped a lot there to keep the momentum going in the air.

Re: RollaKosta :^)

Posted: Mon Jan 11, 2016 10:48 am
by Waddle
Willhart wrote:
Waddle Derp wrote:I assumed something similar would be possible with lunalua; unfortunately I have no idea how lunalua works. Here's how I did it:
Spoiler: show
While I was toying around in the editor, I found out that placing another block (I chose ice cubes) over a conveyor belt makes them go faster, but in the opposite direction. So I flipped the conveyor graphic and added slippery slopes, and uhh that's basically it.
That is very interesting to me, and something I did not know from before. Another way I know to make this effect on vanilla is to attach a moving npc to layer and then push it to lava so it dies. All the blocks on the layer attached to that npc will still push the player like they were moving even though they stay still. I don't think it worked as well as this one though on my testing. The slipperiness of ice may have helped a lot there to keep the momentum going in the air.
The slippery slopes definitely helped, though I'm not sure if the ice cubes did. Is the momentum of the glitch you found similar to this one? If so, I may just toy around with it to make a RollaKosta 2.0 :^)

Re: RollaKosta :^)

Posted: Mon Jan 11, 2016 11:23 am
by Willhart
Waddle Derp wrote:
Willhart wrote:
Waddle Derp wrote:I assumed something similar would be possible with lunalua; unfortunately I have no idea how lunalua works. Here's how I did it:
Spoiler: show
While I was toying around in the editor, I found out that placing another block (I chose ice cubes) over a conveyor belt makes them go faster, but in the opposite direction. So I flipped the conveyor graphic and added slippery slopes, and uhh that's basically it.
That is very interesting to me, and something I did not know from before. Another way I know to make this effect on vanilla is to attach a moving npc to layer and then push it to lava so it dies. All the blocks on the layer attached to that npc will still push the player like they were moving even though they stay still. I don't think it worked as well as this one though on my testing. The slipperiness of ice may have helped a lot there to keep the momentum going in the air.
The slippery slopes definitely helped, though I'm not sure if the ice cubes did. Is the momentum of the glitch you found similar to this one? If so, I may just toy around with it to make a RollaKosta 2.0 :^)
I've used blocks attached to moving layers to push the npc into the lava faster, which makes the effect stronger. Altering their movevent speed with npc txt files had similar effect too. It does need some setup on level start though, due to requiring killing the enemies that way on the first screen, but I've done it in couple of levels. It does work like conveyor belts but it's normally not quite as fast as the one you made. You could give it a try and see how it works for you.