can I change the center of a actor ?

jasonshowjasonshow Member Posts: 71
edited November -1 in Working with GS (Mac)
in some case,we rotate a actor,but need to set the custom center of the actor.
can I do this ?

Comments

  • cbtcbt Member Posts: 644
    Sorry, not yet. I guess you can use a set of actors to achieve that effect but, it wouldn't worth it, believe me :)
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    i think you probably could if you made an image with some transparency to one side. for example you make a transparent square, place your image on the top left corner, save it as png and add it to GS. The image's center should be at the center of the "transparent square" you made...
    It's quite hard to explain! :D
  • cbtcbt Member Posts: 644
    This method falls under the "set of actors" method I mentioned!! :D
  • madmasseymadmassey Member Posts: 55
    You could make a small, invisible actor and treat it like your main one with all the rules and collision and all that. Then take a second actor with an image on it and constrain it to your invisible with an offset, like -50 in Y or something. That would effectively change the center of your object and it's fast to set up, but I guess it depends on what specifically you want to do with it. It worked for me when I was prototyping a 3rd person Monkey Island style perspective game and only wanted the players feet to collide with the world.
Sign In or Register to comment.