axis movement

Hi there, I'm new to gamesalad...
I'd like to have an actor move just one axis per time... I mean, just move left/right or move up/down (like in a sliding puzzle)...
I really can't figure it out: constraining attribute to mouse position x and y, will just move the actor on both axis at once...
I'm really going mad...
Any hints?
Thanks a lot
I'd like to have an actor move just one axis per time... I mean, just move left/right or move up/down (like in a sliding puzzle)...
I really can't figure it out: constraining attribute to mouse position x and y, will just move the actor on both axis at once...
I'm really going mad...
Any hints?
Thanks a lot

Comments
That's quite easy to do. If you are new though I highly recommend you hop on YouTube and type in Gamesalad and watch videos. After you have watched quite a few of those videos and have a better grasp of how GS works and you still have questions I'd be happy to help. Otherwise you will just end up having alot more questions than answers. Better off having a grasp before hand.
But for a quick answer to your question... there is nothing wrong with it having both sliding attributes in there. Once you have put other puzzle pieces in it they would constrain your ability to move the puzzle piece where it can't move. i.e Look at a game like Slide Puzzle, if thats the kind of game you are trying to make.
I'm starting to think it should be a requirement to atleast watch all of your Youtube videos before being allowed to use GS. Seems like many many many questions asked on the forum could be solved by them or Google ;p
These kinds of non-responses have many root causes. But its rarely because of ingratitude. For example, many adolescents simply don't know how to express gratitude in public. (As seen on this forum, they often either go silent or go freaky over-the-top.) Also, some people just get embarrassed easily, and frankly a get a little intimidated when someone they perceive as 'important' focuses on them.
Imagine walking up to a microphone in a huge stadium and hearing your question amplified to the furthest corners. Then imagine finding that the stadium is now filled with people all staring at you while someone gives you a really cool answer to your question. Some people might react by thinking to themselves, "About time I got some attention." Others (probably the vast majority) will fight back the urge to turn and get the heck out of here.
For many, this forum is a pretty intimidating place. It can elicit all sorts of behaviors -- including going silent.
Well... anyway that's the story I tell myself when someone does not respond with even a simple "Thanks."
RThurman
Edit: Or it could be a simple matter of different timezones as @rebzone shows below.
↓↓↓↓↓↓↓
I'm sorry for not responding before, but I'm Italian, so now here it's 8.30am...I wrote just before going to bed
Now I'm at work, so I'm going to take a look at TSB's demo when I'm going home for lunch, then I'll obviously give feedback... I'm not new to forums etc, and I know how frustrating is give hints and not be answered
Anyway, I said I'm new to gamesalad, and it's true, but I mean it's about 2-3 weeks I'm "playing" with the creator, looking to everything I can find on youtube or gshelper and even examining demos...but some behaviours are just not so simple as it would be writing some code (while, obviously, many others are lot LOT easyer
I think I have to "get in the mechanics"...and that's what I'm trying to do creating something "easy"
Anyway, thanks and see you soon
While I was trying I created a project like yours (+/- 15 to get the direction), but I was missing the boolean to lock down the direction (and actually many other things :P).
Thanks a lot!
By the way, can I ask you what's the meaning of the function used to set the X distance value:
magnitude(self.position.x - game.touch x, self.position.x - self.touch x)
I really can't understand it...
Thanks
What if I use something like abs(self.position.x - game.touch x), and the same for the y axis and then compare the 2 results to determine the direction?
In the functions faq they say:
Usage: magnitude(x,y)
Find the length of a line segment from the origin, (0,0), to the given point. You can include an offset,(x',y'), to find the length between the two points. i.e. magnitude(x-x',y-y')
Example: If I wanted to find the length between my actor at coordinates (25,30) and another actor at coordinates (100,240), I would use the expression magnitude(25-100,30-240).
So, I understand the function usage using x and y coordinates at once, but, if I don't get it wrong, you are using it just for x coordinates (and then, in another expression, for the y coordinates), am I wrong?
Sorry to be boring, but I'm just trying to get into it