The Daily Click ::. Forums ::. Klik Coding Help ::. Add speed!
 

Post Reply  Post Oekaki 
 

Posted By Message

andreas.wah



Registered
  27/05/2006
Points
  105
27th May, 2006 at 20:53:58 -

Hi! I'm working on a spaceship game, when the space ship collides with a red dot, it's supposed to gain speed, but after a while loose it.
Like when a platform character make a jump, it's send up in the air and after a while it comes back to earth.
I want the same effect but when the ship is hitting this particulary spot!
How do I do this?

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
27th May, 2006 at 22:47:38 -

I hope you don't make characters jump liek you just described it, that's terrible.

Anyway, you just need a counter or an alterable value or something to keep track of how long the powerup has been active. Something like this perhaps:

Ship: Alterable value A = 0
---Ship: set speed to 30

Ship: Alterable value A > 0
---Ship: set speed to 50
---Ship: subtract 1 from Alterable value A

Ship collides with Dot
---Dot: Destroy
---Ship: Set Alterable value A to 300

 
n/a

andreas.wah



Registered
  27/05/2006
Points
  105
27th May, 2006 at 23:12:00 -

HAHA, no, I just wanted to make sure you guys understand.
Thanks for the answer, it looks promising.
I'll test it right away, as soon as I get home

 
n/a

andreas.wah



Registered
  27/05/2006
Points
  105
28th May, 2006 at 23:40:35 -

thanks for the answer but that didn't work
The ship is a platform object that's supposed to get an extra boost in the jump while hitting this spot.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
29th May, 2006 at 07:59:56 -

Thanks for not including that INCREDIBLY IMPORTANT bit of information in your question. To do what you're asking with platform movement is impossible. Create a custom movement that does the same thing (search the articles on how to do this), and it'll be easy though.

 
n/a

Werbad



Registered
  18/09/2002
Points
  235
29th May, 2006 at 10:16:16 -

It's not possible to change the jump strength with platform movement... make a custom one

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
29th May, 2006 at 12:21:00 -

What a fantastic bit of insight.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click