How to constrain an actors position to other actors
jack.zainudin@live.com
Member Posts: 25
How do I constrain y and x position to another images?
Comments
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
and say in the scope
constrain attribute
constrain game.x scope to self.positon.X
constrain attribute
constrain game.y scope to self.position.Y
and say in the other actor
constrain attribute
constrain self.position.X to game.x scope
constrain attribute
constrain self.position.Y to game.y scope
good luck!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
and say in the scope
constrain game.x scope to self.positon.X
constrain game.y scope to self.position.Y
and say in the other actor
constrain self.position.X to game.x scope
constrain self.position.Y to game.y scope
good luck!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
You asked this question on July 11th and got detailed answers.
In an earlier post about the basics of GS it was recommended you read the GS cookbook.
Now, it's the 12th. And you are posting a "Please Help!!" post again. And asking the same question you've had answered twice.
Perhaps if you'd tell us what you'd like us to say differently this time than the detailed instructions you've been given or a solution other than reading the cookbook and watching tutorials on Youtube, we could help you.
اطرح سؤالك بالعربي لو سمحت و بحاول أساعدك ..
نعم، أنا apoligise لنشر هذا باستمرار، لذلك بالتفصيل، أنا جعل التطبيق قناص وأود أن وضع فاعل في وسط نطاق قناص، على أي حال كنت أتساءل كيف سيكون acomplish هذا، كثير من الناس قل لي أنني بحاجة إلى تحد ثم إلى موقف الذات إلى نطاقات، ولكن أنا لا أعرف ما أنا بحاجة للنقر لتحقيق ذلك.
Please don't make multiple discussions on the same topic. If you don't understand an answer, ask for clarification in the same thread.
I suggest you watch all 11 of the short videos (and actually do the steps) before you ask more questions. You will get a much better response form the community if you can ask specific questions and can demonstrate that you can do basic things (like drag a constrain behavior into the behavior list, or create a game level attribute).
make 2 real attributes and call them xScope and yScope (or whatever)
go into the scope and make 2 behaviors called constrain attribute
1: constrain game.xScope to self.position.x
2: constrain game.yScope to self.position.y
go into the other actor (the actor that has to be in the centre op the scope) and also make here 2 behaviors called constrain attribute
1: constrain self.position.x to game.xScope
2: constrain self.position.y to game.yScope
this should work good luck! if you need more help you can PM me!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Please, please, stop making multiple discussions on the same topic.
If you don't know how to do what @timolarpre1998 instructed, you need to go back and view the basic videos I suggested. They use the windows version of GS Creator and will teach you how to use Creator to do basic things like making attributes and using the constrain behavior. (Did I mention the video series uses the Windows version of GS Creator?)