Constrain an actor to another actor (for shadows)?

I asked this before but no answer. Someone told me that you can't make an actor follow another actor without delays.

Does anyone know any other way to achieve this? =)

Comments

  • marwanbarakatmarwanbarakat PRO Posts: 41
    edited October 2012




    @sSHAKESs As u can see in this video i've made a shadow that follow the ball on the table.

    I achieved this by constraining the shadow actor position X to ball position X
    for sure i had to do this through a game attribute called ball x that always constrain to ball position x

    If u have any question , just shoot
  • sSHAKESssSHAKESs Member Posts: 27
    @marwanbarakat Haha! I saw this video the other day... I think you did a good job with your game!

    I did use this method to. I constrained the shadow to the actor on the x and y position. It does follow the actor but there is a slight delay. Someone here told me there will always be a delay because of how GS works. Can you show me more in detail how you did it so there's no delay? =)
  • MantoManto Member Posts: 796
    @sSHAKESs If you constrain the shadow to the actor like in this tshirtbooth's tutorial it will have smaller delay.

    http://www.youtube.com/watch?feature=player_embedded&v=OVSsYQJaJaI
  • marwanbarakatmarwanbarakat PRO Posts: 41
    @sSHAKESs there's delay in mine too , i tried to make other shadow that goes exactly with the ball to give it a 3D feel , but it was bad because of the delay u mentioned
  • marwanbarakatmarwanbarakat PRO Posts: 41
    @sSHAKESs ah btw have u downloaded the game? its for free on app store , link on youtube description :)
  • sSHAKESssSHAKESs Member Posts: 27
    @marwanbarakat I haven't downloaded it yet. I'll download it tomorrow. It's already 3.30am here. I'll let you know once I played it. ;)

    Yes, I already tried that tutorial. There is still a slight delay. I'm not so sure if I want that effect though. I guess I might just have to work with it... it does look animated since there's a slight delay... hmmm...
  • UtopianGamesUtopianGames Member Posts: 5,692


    I dont think the delay is very noticeable tbh so i wouldn't worry.

    In the video above i think i went the scene/layers/hero/x.position route to constrain but not on my mac atm so cant check.

    Darren.
  • sSHAKESssSHAKESs Member Posts: 27
    @UtopianGames Hmmm... I don't notice the shadow having delays in your game. But it's noticable in mine. What do you mean by scene/layers/hero/x.position? Please expand a little bit more.

    BTW... is this going to be a remake of Double Dragon? Cool!

    @marwanbarakat I played your game. I really like the light switch in the beginning. I think it's cute. The only things that I saw for improvement right now is to be able to change the portrait picture on the background to the user's personal photo... I'm sure people would love that feature. And when the ball bounces on the table, it just disappears to abruptly... maybe it would look more natural if it bounces a couple of time first and fades. Just suggestions... I think it's already a great game even without those!
  • mounted88mounted88 Member Posts: 1,113
    @sSHAKESs deepblueapps was saying using the constrain attribrute behavior, pick self.position.x to (expression editor) current scene>layers>actor>position>x
Sign In or Register to comment.