Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpriteKit Liquid (water)

How can I get a small amount of liquid in my spriteKit application?

I want that liquid in a container, it will be sealed inside but I want it to be able to move around.

Is there a better way to implement this? Maybe an option without SpriteKit?

EDIT: I was able to simulate water using this tutorial: http://www.raywenderlich.com/85515/liquidfun-tutorial-1

and this sample project I found: https://github.com/safx/liquidfun-ios-sample

BUT it requires me to run 2 physics worlds (1 for box2D and 1 with spriteKit). Does anyone know how I can get my particles from box2D into spriteKit? I imagine this should be doable since spriteKit runs on box2D as well right?

like image 810
NickProvost Avatar asked Oct 15 '15 16:10

NickProvost


1 Answers

I can suggest you "LiquidFun". Its very easy to Install and it is fun to play around with it. You can build Games like "Where's my Water?"... and others!

Here is a link to a tutorial from RayWenderlich: Click Me

I hope that this was helpful!

// But Note that this Version of LiquidFun is only for XCode 6.3

Greetings!

like image 172
Kevin Weselski Avatar answered Oct 17 '22 12:10

Kevin Weselski