GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

NEED HELP WITH SPRITE!

SteamworksSteamworks Posts: 61Member
So in my game i have a little popsicle stick puppet that bobs back and forth as you move him. It looks great for the puppet effect but when i make him jump i need to make the stick that he's attached to longer. the stick and the character are 1 picture so how would i do this?

Heres a picture of him standing still:
Photobucket

so is their a way to change the actor image so he actually has a longer stick but the extra is hidden behind the scenery until he jumps or something like that?

Comments

  • zombieaddictzombieaddict Posts: 213Member
    just have a longer stick on the actor and move it up when needed.

    http://imageshack.us/photo/my-images/10/guy2k.png/
  • SteamworksSteamworks Posts: 61Member
    zombieaddict said:
    just have a longer stick on the actor and move it up when needed.

    http://imageshack.us/photo/my-images/10/guy2k.png/

    yah but how would i have just the top part of him above ground? if i just make the stick longer he falls into infinity because the bottom of the actor is like 400 pixels away from the ground/solid
  • zombieaddictzombieaddict Posts: 213Member
    trying to visualize what you're trying to do. do you mean you want to have him seperate from the stick? you can just have a second actor for a long stick and hide it where you want until its needed. behind another actor, or even just have it invisible
  • icanmakeicanmake Posts: 466Member
    just make the actor the character without the stick and then another actor for the stick that says constrain self position.x to character self position.x and constrain self position.y to character position.y- half the characters height+half the sticks height. i think that would work
  • SteamworksSteamworks Posts: 61Member
    how would i make it half hight? otherwise yah that would probably work
  • icanmakeicanmake Posts: 466Member
    no i mean whatever half the height of you character is and then add that to whatever half the hight of the stick is= the number you put in
  • SteamworksSteamworks Posts: 61Member
    oh ok thx. wow im a noob :P
  • icanmakeicanmake Posts: 466Member
    no problem. i remember being a noob... oh wait that was this morning =)

    btw could u like my facebook page for me: http://www.facebook.com/pages/Icanmake-apps/157742487631655
This discussion has been closed.