Switching between Hollow and Solid will enable/disable the collisions between the platform and the ball.Īnd there’s nothing much to do, but you can download the entire project and play with it. The core of the prototype is the platform, which has two animations: one called “Hollow”, the default red platform, which does not have any collision shape, and the green platform called “Solid” which has the collision shape. Which will basically make the ball respawn if it falls off the stage. The ball actor only has one animation, which is the ball itself, and has this behavior attached:
#Stencyl switch animation code
or other) in Stencyl or GameMaker, you can switch to code mode. Then you will be able to drive the ball wherever you want by turning solid the right platform at the right time. Ive used Game Maker, Stencyl, Game Salad, Multimedia Fusion and a number of other game. The ball will pass through the platforms as red platforms aren’t solid.īut if you move the mouse over a platform, it will turn green and become solid. We have a ball continuously falling down, and some red platforms. Console targetsPlayStation 4, Xbox One, Nintendo Switch. I am a stencyl user and Ive been making a survival game for a while it has crafting, inventory system, backpack, chests, building, animals, day night cycle and camp fire lights. Now it’s time to see how easy is to do using Stencyl.įirst things first, let’s start from the result: best 2D non-coding game engine Unreal Engine 4 is ranked 2nd while Stencyl is ranked 8th. Select Click here to add a frame, then navigate to and select Game Assets\Graphics\GUI Elements\ play button.png. I already made a prototype of this game using AS3 and Box2D and Construct2. Change the Name for this animation to Default.
#Stencyl switch animation how to
Today we will see how to create a game like Quick Switch.
![stencyl switch animation stencyl switch animation](https://static.packt-cdn.com/products/9781849695961/graphics/5961_01_05.jpg)
I am really happy the new version of Stencyl has been released, so I can make some projects and publish some tutorials.