playMaker

Author Topic: 2D Platform Camera Movement  (Read 3311 times)

cloud03

  • Full Member
  • ***
  • Posts: 230
  • Viva Playmaker!
    • View Profile
    • Milkish Game Studios Blog
2D Platform Camera Movement
« on: December 06, 2013, 09:04:31 AM »
Hi all, I've modified the smooth follow action to make a camera that follow the character but with dampening on both axis (horizontal & vertical).

Just set the side dampening to a low number, the higher the number, the lesser dampening effect. This will give a mario camera feel...

hopefully this is useful...

Update: version 2 now includes option to ignore the vertical position of the target object.
« Last Edit: October 15, 2014, 05:20:55 PM by cloud03 »

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
    • View Profile
Re: 2D Platform Camera Movement
« Reply #1 on: December 22, 2013, 06:46:22 PM »
Hi!

Be sure it´s useful !

Thx

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2D Platform Camera Movement
« Reply #2 on: December 26, 2013, 06:33:00 AM »
Hi,

 It will be in the unity 2d package, thanks for this.

https://trello.com/c/jLaS9RvH/42-unity-2d-look-at-and-related-actions-rework

don't forget to vote up this task.


 Bye,

 Jean

Sid

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
Re: 2D Platform Camera Movement
« Reply #3 on: July 10, 2014, 06:10:10 PM »
EDIT: 

I am in error.

It works fine.  I just had to reset my 'Ease Float' for some reason.

Thanks.

Quote
Hi.

I cannot seem to pass an 'Ease Float' variable into either 'Height Damping' or 'Side Damping', but I can pass a 'Set Float' variable. 

Is there any way to go about this?  Without 'Ease', we get a jerky camera.

I've posted the code below.

Thanks so much.  I'm really digging PlayMaker.
« Last Edit: July 11, 2014, 12:48:18 AM by Sid »

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: 2D Platform Camera Movement
« Reply #4 on: October 08, 2014, 12:55:02 PM »
This is excellent, thanks  8)

cloud03

  • Full Member
  • ***
  • Posts: 230
  • Viva Playmaker!
    • View Profile
    • Milkish Game Studios Blog
Re: 2D Platform Camera Movement
« Reply #5 on: October 15, 2014, 05:19:42 PM »
Updated the script, now includes option to ignore the vertical position of the target object, please check the first post for the updated script.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: 2D Platform Camera Movement
« Reply #6 on: September 29, 2015, 11:00:24 AM »
Are these actions in the ecosystem? Was looking for a 2d camera action but could not find.. This was not what i needed but still...

boragungor

  • Playmaker Newbie
  • *
  • Posts: 17
  • Who really wrote Beethoven's music to begin with?
    • View Profile
Re: 2D Platform Camera Movement
« Reply #7 on: September 29, 2015, 11:53:41 AM »
An old thread but useful, thanks ! =)