HELP with Constraining attributes
![networ](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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.
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