playMaker

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

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
2D Platform Camera Movement
« on: December 06, 2013, 11: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, 08:20:55 PM by cloud03 »

Kothe

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

Be sure it´s useful !

Thx

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2D Platform Camera Movement
« Reply #2 on: December 26, 2013, 08: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: 32
Re: 2D Platform Camera Movement
« Reply #3 on: July 10, 2014, 09: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, 03:48:18 AM by Sid »

4ppleseed

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

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
Re: 2D Platform Camera Movement
« Reply #5 on: October 15, 2014, 08: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
Re: 2D Platform Camera Movement
« Reply #6 on: September 29, 2015, 02:00:24 PM »
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?
Re: 2D Platform Camera Movement
« Reply #7 on: September 29, 2015, 02:53:41 PM »
An old thread but useful, thanks ! =)