Very New - A few Questions

ArmZArmZ Member Posts: 4
edited December 2011 in Working with GS (Mac)
Hey everyone, I'm extremely new to creating games with Game Salad.

I have been messing around for a few hours now, and I think I will begin by asking how could you get an actor to physically slide from one place to another.

Such as a checkpoint to move on to the next stage, but limiting the area it is allowed to be slid in.

Currently, I am trying to make my object (actor) move up to match the background picture, for a tutorial.

Thanks,
Arm Z

Comments

  • App SurgeApp Surge Member Posts: 651
    I don't quite understand what you're saying... but if you are trying to get the actor to move from one point to another you can use accelerate to, move to, or even interpolate self.position.x and self.position.y to the new coordinates.

    Best of luck!
    Henry Abrams
  • ArmZArmZ Member Posts: 4
    Ok, this was helpful.

    Sorry I wasn't very informative. If you could tell me how to find the coordinates of a spot, maybe that would be easier?
  • App SurgeApp Surge Member Posts: 651
    The coordinates are the center x and y positions, like pretend its a graph. So the bottom left corner is (0,0) or self.position.x = 0 and self.position.y = 0.
  • ArmZArmZ Member Posts: 4
    So is there no way to find a specific point?
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Drag an actor on the stage where you want to know the coordinates. Then double click that actor on the stage, and look on the left hand side in the attributes window, and click the drop down menu for "position" that will give you the X and Y position of that actor, and you can then use those coordinates in your scripting.
  • ArmZArmZ Member Posts: 4
    Thank you!

    How would one go about clicking on an actor, then clicking somewhere else on the screen, and the actor seems to teleport or simply appears on the second click?
  • App SurgeApp Surge Member Posts: 651
    make a boolean called inside.

    inside the actor, make a rule that says when touch is inside change attribute game.inside to true.
    then make a rule that says when touch is outside and game.inside is true, change attribute self.position.x to game.mouseposition.x and change attribute self.position.y to game.moustposition.y. and change attribute game. inside to false.

    Just thinking aloud, but maybe it'll work.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Have you watched all the Cookbook videos on youtube yet? There is a plethora of information there, and on the Cookbook section here as well. And then there is http://www.gshelper.com

    youtube Cookbook page
    http://www.youtube.com/user/GameSaladCookbook
  • CloudsClouds Member Posts: 1,599
    @ AMZ

    How would one go about clicking on an actor, then clicking somewhere else on the screen, and the actor seems to teleport or simply appears on the second click?

    Make an attribute (to check if you have touched the actor) - let's call it 'clicked'.

    Rule 1 - If touch is pressed change attribute 'clicked' to 'true'

    Rule 2 - if 'clicked' is 'true' and mouse button is down then . .
    Change attribute - position X to mouse position X
    Change attribute - position Y to mouse position Y
Sign In or Register to comment.