Help with Characters

VichamaVichama Member Posts: 5
edited October 2012 in Working with GS (Mac)
Hi,

Not sure if this is the right location to do this but couldn't find anywhere else, I have done some searching and there doesn't appear to be any material on the help that I need.

I want to make a game where by when a character interacts with an object, or the player selects something from an inventory with a "Touch" the main character changes for a period of time, both it's look and it's control.

So player 1 is a white bird with no power, they fly into a power-up and the image changes to a purple bird which is bigger and can breathe fire.

I have it so far that my player interacts with an object, the object and the white bird are destroyed and call a new character, however the character because it is larger appears "in the wrong place and the wrong size" I'd really like the graphic to appear with it's "feet" in the same place as the character just deleted and the same ratio (although larger) as the last character.

Would I use a constraint for this in some way?

Also if anyone knows how to do this without interaction but on player touch?

Any thoughts/Help would be appreciated.

Thanks

Comments

  • gamesfuagamesfua Member Posts: 723
    Couldn't you just say SPAWN bird from initial character's x and y position? And if lets say the bird's feet are a little below the initial character's- then you could just say SPAWN actor from player's position x and position y+20. The 20 represents 20 more pixels higher on the y axis. Make sense?
    As for the character turning back- couldn't you say when BIRD IS SPAWNED set timer for AFTER 30 seconds SPAWN (or recycle) MAIN CHARACTER and destroy BIRD.
    Let me know if this isn't helpful.
  • gamesfuagamesfua Member Posts: 723
    And remember you can resize any actor by either double clicking and changing height and width or by adding behaviors inside the actor for the same thing. For instance if you wanted your character to grow over time you could use an interpolate behavior and use the actors width and height as the variables.
  • VichamaVichama Member Posts: 5
    Thanks anatomyofdreams, I have to say haven't quite got the hang of the self x and y thing....the player can move position so I am not sure how I would "Lock on" to the current position of the character and then have the new actor appear there.

    If I could work that out that might solve the issue or as you say (which is a good idea) once I know the Y the position I could spawn them mildly higher or lower.

    You mean set the actor's size before they are on screen rather than the "drag and resize" option when they are on screen?

    I was watching a tutorial on finding the top and bottom of a character and using that...so might have to go re-watch it and see if I can determine the bottom of a character and then load the 2 bottoms in the same place?

    Thanks for your thoughts so far.
Sign In or Register to comment.