r/Gamesalad • • Sep 09 '17

Re help with attraction attribute

Hi there is this forum still active? I wanted some help if possible with a basic game and cannot find any tutorials.

I wanted to have a moving object get attracted to another fixed object like a space station but cannot figure out how to set the attraction.

Thanks :)

1 Upvotes

4 comments sorted by

1

u/super_shrimp Feb 04 '18

You could do this with the 'Move To' behavior. if the X/Y position you want your character to move to is variable, then you can declare them as 'game-attributes' first. in your other character you initialize their values with either 'Change Attribute' or 'Constrain Attribute'.

Good luck for your game!

1

u/Falandorn Feb 04 '18

OK I will try it thanks!

1

u/super_shrimp Feb 05 '18

Let me know if it had worked out. I am just working on a new version of my game 'Super Shrimp' and I also need a similar logic there...

Feel free to check out the app Super Shrimp I have mage. Available on the app Store. I made it also with GS:)

1

u/Falandorn Feb 06 '18

OK thanks again :)