Page 1 of 1
solid animation
Posted:
Wed Feb 15, 2006 12:31 am
by The achievement
Hi again, i am just wondering when i draw an image from paintshop right, and i add it onto my game, how do i get it so my character can walk on it, because when i do game mode he just keeps falling thru? Can sombody give me advice????
Posted:
Wed Feb 15, 2006 12:47 am
by Fuzzy
I can once more! It sounds like you have added gravity or falling of some sort, so you are well on your way to being a good game maker.
What you need to do next is to check for a collision.
Go to the actor control menu, and select the actor that moves/walks. Now select add event. from the menu that pops up, select 'collision'. A menu will pop of and it will say stuff about sides, alnd also "of actor" in the "of actor box, select the name of the actor that is being struck by the walking actor. That might be a wall, or the ground, or whatever.
next click the little action button. you can either select physical response and play with the settings there, or select script and put this in
yvelocity = 0;
In physical response, event actor is the one causing the motion, and the collide actor is the one being struck.
Posted:
Wed Feb 15, 2006 1:01 am
by The achievement
Pete dude i love you man i would have never ever made it this far without you thank you for everything, and not to be a person who asks 1 too many questions, ok well i have these three snakes i drew but, when i kill one of them they all die, can u tell me a way just to make 1 of them die? im thinking you make a variable for each one of them, like x=snake+5; or y=snake-5? any hints?
Posted:
Wed Feb 15, 2006 1:11 am
by Fuzzy
by what means are you killing them?
Posted:
Wed Feb 15, 2006 1:16 am
by The achievement
peeeeeeeeeeeeeeeeeeeeeeeeeete you came thru again
! thank you man!!!!
Im gonna start callin you power POWER PETE. remember that game? i loved it. um can i ask you just one more question is that ok? I drew these 3 snakes rite but when i kill one of them they all die. im like what the? whered they all go? and i was wonderin if you could help me? im thinking its x=snake-5; or y=snake.2+5? any hints power pete?
Posted:
Wed Feb 15, 2006 1:18 am
by The achievement
ooops too many replys, crap ok i am jumping on them, i dont know i jump on them and every snake in my game dies. i have no idea
Posted:
Wed Feb 15, 2006 1:26 am
by Fuzzy
each incidence of a snake is going to have its own unique name based on the original. snake number one should be "snake.1" To refer to all snakes in general we would just put "snake". note that the numbering starts with zero, so the first copy is snake.0 not snake.1
What is probably happening is that you are checking for a collision against snake, and this is being interpreted by GE as meaning all the snakes.THis is good.
Look through your code for collisions with snake, and this should lead you to a destroy actor event. Make sure destroy actor event says "collide actor" not snake.