Physical response?? what the...

Non-platform specific questions.

Physical response?? what the...

Postby duracel92 » Thu Feb 09, 2006 11:30 pm

Physical response, hwo do youo get it too work, on my first game it worked now??? nothing happens the actor and walk straight off? and into nowhere..

if i put the event mass at 100 (starting with the actor that will be hit) and the actor to hit into the abov on 0.1? how does that not work?

oh yeah, the velocity multiplyer is 0 (actor to be hit) 7 for the other? (moving velocity is 7 on key down event)
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby Fuzzy » Fri Feb 10, 2006 4:07 am

Depending on what you are doing, you can leave the mass set at the defaults. If you are trying to stop both actors from moving, put both multipliers at zero.

The only time you'd use a non zero multiplier is if you want to have one actor hit the other, and cause it to start moving, or if you wanted something to slow down.

Two good examples would be a pool game, such as billiards, where the cue ball should stop after striking another ball, and the other ball should start moving.

The other example would be a golf ball rolling in grass. a collision event with the grass would use something like collide actor mulliplier 0.9, so that each square of grass would slow the ball further and further.

If I had it all wrong, and you want to do something different, please post again.
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 duracel92 » Fri Feb 10, 2006 4:11 pm

ive tried putting them to zero... nothing happened...
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby Novice » Fri Feb 10, 2006 5:18 pm

If you are using infinite actors its a bug, it happens when trying to collide with an infinite actor out of screen.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby duracel92 » Fri Feb 10, 2006 5:23 pm

nope not an infinite, the walls are only a few pixels wide, i wonder if thats a problem... the only infinite actor is the grass to walk on...
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby Novice » Fri Feb 10, 2006 5:40 pm

Try ticker walls, just to tell you if your character walks off screen he will fall thru the infinite grass.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby duracel92 » Fri Feb 10, 2006 6:44 pm

it won't work the game is a "birds eye view game"...
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby Fuzzy » Fri Feb 10, 2006 8:34 pm

You need walls that are thicker than the actors velocity. If your velocity is greater than the wall thickness in pixels, it can cause it to "leap" past the wall.
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 Troodon » Sat Feb 11, 2006 7:05 am

ThreeFingerPete wrote:The other example would be a golf ball rolling in grass. a collision event with the grass would use something like collide actor mulliplier 0.9, so that each square of grass would slow the ball further and further.

It is working like that? I tought that the actor will stop when it collides the corner of grass. I'm using multiply of 0.0001 when I make physical respnse+gravity things.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Fuzzy » Sat Feb 11, 2006 10:01 am

tekdino wrote:It is working like that? I tought that the actor will stop when it collides the corner of grass. I'm using multiply of 0.0001 when I make physical respnse+gravity things.


If you use say 0.9 for a multiplier, and your velocity is 10, then you will slow to 9 velocity, and in the next grass collision, you will slow to 8.1, then 7.3, then 6.5... never quite reaching zero.
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 Troodon » Sat Feb 11, 2006 11:33 am

Thank you!...but...but...when I use multiply of 0.001, the actor stops at once.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby duracel92 » Sat Feb 11, 2006 2:34 pm

ThreeFingerPete wrote:You need walls that are thicker than the actors velocity. If your velocity is greater than the wall thickness in pixels, it can cause it to "leap" past the wall.
I have done this using a different actor to surround the walls, and having done the collision event the actor can still walk through walls...
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest