Floating

lukey5227lukey5227 Member Posts: 111
edited November -1 in Working with GS (Mac)
I would like a character to "float". Like, if the floor was 50 pixels higher then it really is. That would be REALLY useful.

Although, I would NOT like to have a second invisible actor that the character floats on.

Is this possible? I don't want to have a second actor because I'm going to make 25+ levels and it will be really annoying to add something above every floor.

So, basically, I'd like a "imagine <actor> is <pixels> <higher/lower/left/right> then it really is. Is this possible...

Comments

  • RattleheadRattlehead Member Posts: 485
    If you don't have a static ground height that you could base a behavioral calculation on (i.e. you have multiple levels of platforms or ground that the player can traverse), the only thing I can think of would be to create your player image with 50 pixels of 'transparent white space' so that when it is moving along the ground it looks like it is floating but it is really just transparency kicking in...
  • lukey5227lukey5227 Member Posts: 111
    Rattlehead said:
    If you don't have a static ground height that you could base a behavioral calculation on (i.e. you have multiple levels of platforms or ground that the player can traverse), the only thing I can think of would be to create your player image with 50 pixels of 'transparent white space' so that when it is moving along the ground it looks like it is floating but it is really just transparency kicking in...

    I for some reason thought I tried that. My dad tried that. I think it still hit the ground only because its all transparent around. Hm?
  • RattleheadRattlehead Member Posts: 485
    You will definitely run into other issues if you go the transparency route; primarily as you indicated in the area of collisions with other objects.

    Still, if you plan accordingly that may not be an issue. Hard to tell without knowing the specifics of the game...

    Good luck!
  • lukey5227lukey5227 Member Posts: 111
    I'll try what people are telling me to do yomorow. Although I thought transparent meant (the borders are the edges".
Sign In or Register to comment.