solid animation

Talk about making games.

solid animation

Postby The achievement » Wed Feb 15, 2006 12:31 am

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????
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby Fuzzy » Wed Feb 15, 2006 12:47 am

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.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby The achievement » Wed Feb 15, 2006 1:01 am

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?
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby Fuzzy » Wed Feb 15, 2006 1:11 am

by what means are you killing them?
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby The achievement » Wed Feb 15, 2006 1:16 am

peeeeeeeeeeeeeeeeeeeeeeeeeete you came thru again :D ! thank you man!!!! :D 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?
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby The achievement » Wed Feb 15, 2006 1:18 am

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 :?
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby Fuzzy » Wed Feb 15, 2006 1:26 am

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.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest