Skip navigation

Category Archives: Rope Physics

Found a useful link on C# operators:
http://msdn.microsoft.com/en-us/library/6a71f45d.aspx

Been working on the game over the bank holiday weekend and today I’ve cloned some levels so I can get the Level Select working with 5 basic levels. Now when you complete a level you’re taken to the Level Select screen and can select another one but I need to get:

  • Levels 2 onwards locked and only unlocking when you complete the preceding level.
  • Save games storing which levels you’ve unlocked
  • Some sort of Level Complete screen that allows you proceed to the next level, replay this level or go to the level select screen.

Level Select Screen

Since my last post I’ve upgraded to Unity 3.5 and messed around with some of the number for jumping which makes it feel much nicer now the gravity and jump velocity have been tweaked.

Today I’ve been listening to the Black Keys – Lonely Boy: http://www.youtube.com/watch?v=a_426RiwST8. Lots.

I’ve been looking into getting the rope physics working and I came across this: http://forum.unity3d.com/threads/36503-Grappling-Hook

which led me to this:

http://unity3d.com/support/documentation/Components/class-SpringJoint.html

So I’ve just been playing around setting up Spring Joints in a test level. Looks pretty promising 🙂 Watch this space…

Converted the SmoothFollow2D.js example script file to C# with a little help from http://forum.unity3d.com/threads/71409-SmoothFollow2D.js-to-SmoothFollow2D.cs-is-giving-me-a-no-render-ship (I think the issue was that  you can’t directly access each part of a vector in C# like you can in JavaScript).  This revealed a bug that saw the camera slowly sinking through the ground, which bizarrely seemed to fix itself  :S I’m always dubious of miracle fixes as they also tend to unfix themselves later on.

I got a rope sort of working using the http://www.unifycommunity.com/wiki/index.php?title=LineRenderer_Ropehttp://answers.unity3d.com/questions/9705/tie-objects-together.html and http://www.unifycommunity.com/wiki/index.php?title=3D_Physics_Based_Rope, which linked me to the rope editor from www.reverieinteractive.com that I’m now playing about with.

 

Rope! Sort of.

I’d like to write my own but I’d rather make the game now and worry about doing it myself later. Perhaps not the wisest way of doing things though, however I wouldn’t be surprised if getting it to do what I need is as hard as doing my own version.

 

 

Just watched this longingly: http://www.youtube.com/watch?v=XzRJosAiD98

Thing is, I can create graphics like this easily and import them in, but this video makes it looks so easy (and sexy?!)  to do it in Unity. Also, whenever I import them in they look like ass. So I need to figure a way to fix that.

Still haven’t got changing jump direction mid air sorted yet. This guy is having the same issue: http://forum.unity3d.com/threads/85796-Side-Scrolling-Platformer-Change-Direction-in-Air so I replied to see if he ever managed to solve it.

I need to start on the rope physics soon too. Then I can start making some puzzles/ levels. I watched this really interesting talk from Jonathan Blow and Marc Ten Boch yesterday: http://www.youtube.com/watch?feature=player_embedded&v=OGSeLSmOALU. It’s especially relevant for me seeing as I know what my mechanics are, but not my puzzles.