playMaker

Author Topic: How to get parallax effect in playmaker?  (Read 5544 times)

xhidnoda

  • Full Member
  • ***
  • Posts: 231
How to get parallax effect in playmaker?
« on: May 11, 2013, 08:39:22 PM »
Hi, me again.
OK, I understand how it works Parallax...but I do not know how to set or get the parallax effect with playmaker.
In the forums say....get position of the camera or player and with this data, set position to my background.
is correct way to do parallax effect?  :-[

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: How to get parallax effect in playmaker?
« Reply #1 on: May 11, 2013, 09:16:07 PM »
Yep that's the basics of 2D parallax.

Do you know how to use playmaker? You should get the x and y position of the camera everyframe and then offset each background layer (id suggest breaking it into chuncks ie Hills, trees, car, whatever is in your game) and set the position of these with an offset to the camera position.
Lets say the camera has moved +10 in x  .. the further away an object is, the less it would move! so the very background hills would be the camera position divided by lets say 5 so the position of the hills will be 2.

Understand?

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: How to get parallax effect in playmaker?
« Reply #2 on: May 12, 2013, 01:05:21 AM »
Why don't just move the camera???

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: How to get parallax effect in playmaker?
« Reply #3 on: May 12, 2013, 05:06:15 AM »
If it's a 2D game using an orthographic camera, moving the camera will not result in any parallax.

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: How to get parallax effect in playmaker?
« Reply #4 on: May 12, 2013, 10:42:04 AM »
It will!
Just put the actors at different distance from the camera!

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to get parallax effect in playmaker?
« Reply #5 on: May 12, 2013, 11:30:22 AM »
hi LampRabbit! yes...i know how to use playmaker :) thanks for reply me.

this video he just put the background in diferent position... like this megmaltese?

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: How to get parallax effect in playmaker?
« Reply #6 on: May 12, 2013, 12:59:59 PM »
Yes sure. Things nearer to camera move faster than things farther from camera!

That's all about the parallax effect. It's an effect, not something that you need to fake.

Just do like that and you don't need to become mad by moving a lot of stuff at different velocities (and probably not faking well the parallax...).

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to get parallax effect in playmaker?
« Reply #7 on: May 12, 2013, 10:11:25 PM »
until now....the parallax effect with not FSM and orthographic camera not work.
But with perspective camera is work.
The problem is...my game is a 2D  :P

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: How to get parallax effect in playmaker?
« Reply #8 on: May 12, 2013, 10:32:21 PM »
Why don't you use 3D camera???
That would save you a lot of work.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to get parallax effect in playmaker?
« Reply #9 on: May 13, 2013, 04:39:46 AM »
Hi,

 You can also get ThinkScroller, and you are done ( it works with orth camera apparently, double check with the author tho)

http://thinksquirrel.com/products/thinkscroller

bye,

 Jean