Script or Physical Response help.

Non-platform specific questions.

Script or Physical Response help.

Postby Just4Fun » Mon Mar 15, 2004 6:54 pm

I would like to speed up the ball on the -yvelocity (after paddle actor collision) each time the lives count goes down.

Current script: yvelocity= -yvelocity

I have also tried using Physical Response and changing collide actor's final velocity.

I'm not having much luck figuring this out. As usual, any help is appreciated. I learn from every response. :!:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Tue Mar 16, 2004 6:19 pm

What's happened with PhysicalResponse?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Just4Fun » Wed Mar 17, 2004 2:15 am

How would I make the actor(ball) go faster when it collides with another actor? The ball speed would be based on the number of lives that the ball actor has?

So...
Lives=3; actor speed 4
Lives=2; actor speed 5
Lives=1; actor speed 6

:?:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Wed Mar 17, 2004 12:56 pm

Use the script editor and put this:

int velocity; //Velocity multiplier

if(lives == 3) velocity = 4;
else if(lives == 2) velocity = 5;
else if(lives == 1) velocity = 6;

PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, velocity, 1.000000);
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest