HELP with Constraining attributes

networnetwor Member Posts: 89
edited November -1 in Working with GS (Mac)
Hi, I'm trying to make this:

I have platform, which rotate if i put something on it (like see-saw)..

I have gravity in scene set to 80
Rules in platform are:

Accelerate up - acceleration 80
Change atribute self.x to self.Position.X
Change atribute self.y to self.Position.Y
Constrain attribute self.Position.X to self.x
Constrain attribute self.Position.Y to self.y

--> It works great...no problem.

But i need to do this - I want to make this platform invisible and collidable with blocks. And then create another actor called "platform_sprite" which will be platform too with image - non collide. I need to make that "platform_sprite" will be do the same thing as "platform" (rotate like see-saw..).

I tried put "platform_sprite" to scene, unlock it and do this:
Constrain attribute self.Position.X to scene.level01.platform.Position.X
Constrain attribute self.Position.Y to scene.level01.platform.Position.Y

But it won't work... What I'm doing wrong?
Thanks.

Comments

  • networnetwor Member Posts: 89
    Thanks again tshirtbooth! I totally forgot to self.rotation :)
Sign In or Register to comment.