Touch Position Run Away! Can Everybody Help Me This?
tanchowyeeiosapp
Member, PRO Posts: 36
in Help Wanted
The mouse is run away when actor is greater then 700, can everyone help this?
I upload the Gamesalad file here...
https://mega.co.nz/#!oMgngSwQ!85kFTR2AVzz6xqxXytWhTmkpbbgzhzV3gKYvquqN25Y
Comments
Is your problem that the actor stops following the mouse when the mouse is greater than 700? That seems to be what you're saying?
If so, that's because you have a rule explicitly telling it to do that.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Yes, the actor stops following the mouse when the mouse is greater than 700, you right. Actually the rule is set by another gamesalad members, I have see the rule many time, still not very understand, can you help me for this problem?
https://mega.co.nz/#!oMgngSwQ!85kFTR2AVzz6xqxXytWhTmkpbbgzhzV3gKYvquqN25Y
Perhaps explain exactly what you're trying to achieve in as much detail as possible, and I can help you achieve it. Right now I only know what you don't want to happen
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Okey, I will tell you more details, sorry! What I want achieve is I want the actor arrive Y 700, the the actor can not move up again, that mean the actor only can arrive untill Y 700
More detail is when arrive Y 700, the actor will stop, but X still can moving...
Okay this shouldn't be too tricky. Are there restrictions on which parts of the actor can be touched to move it? And is 700 the point where the top of the actor can reach, or the middle?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Touch this pack to move, here the picture
http://postimg.org/image/4yxp8d4md/
No middle, need set for 700 for Y...
As best I can tell, this is what you're wanting.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
You help me a a lot, I have many actor faced this problem, now you have solve, I have one more step problem, when touch relessed, the actor will back to position, but after arrive Y 700, the actor can not relessed, the actor only can relessed back to position when Y is less then 700...can you help me out for this last step...
Here is the gamesalad file 2.1
https://mega.co.nz/#!9V42lIqT!zRWW9WHDpXasgD3CDXWpkBXYUSgx1g3hy6xlXZBIk_E
Just change the y position constrain attribute behavior:
Constrain Attribute:[ self.Position.Y ] To:[ game.Touches.Touch 1.Y + self.self.yOffset ]
I remember you, you help me set the rule before, can you update to the file
https://mega.co.nz/#!9V42lIqT!zRWW9WHDpXasgD3CDXWpkBXYUSgx1g3hy6xlXZBIk_E
I will, so that I can understand what you are doing..
Here you go
After change the rule, the Y 700 feature is disappear...
OK -- I thought you were trying to get rid of the "700 feature".
Try this one. I think it is closer to what you want.
You method is good, I will use it for my another project, but it need add another actor for control another actor, I have many actor already set to use the old rule without add another actor, if need edit it will very confusion to edit...never mind, I will wait @Armelline see he can fix it...but anyway, Thank You
I strongly suspect you're going to need to do something different once you tell us the next thing you want to happen, but what you're asking for right now is this - move the two "return" behaviours into the otherwise, not in a separate touch is released rule.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I Agree -- given the progression of questions he is asking. That is why I structured my recommendation as I did.
But I look at like this. He is learning several different methods of doing things and the pros and cons of each. He is building up a library of game mechanics and skill sets, which in the long run will help him to be a stronger developer.
Plus I get the impression that he is interested in creating a medical procedure simulation -- instead of a goofy game. I like the idea of using GameSalad for real-world training and simulation. (But I could be wrong. Perhaps this will turn out to be a GameSalad version of 'Operation'.)
@Armelline and @RThurman, Thank You So Much For Helping