dr. robotnik wont die!

Non-platform specific questions.

dr. robotnik wont die!

Postby tlah » Tue Sep 02, 2008 8:17 pm

I am making a sonic the hedgehog game and i added dr. robotnik at the end. i want to make it so that when sonic (or knuckles, as the case may be) jumps on him (collision, top side, dr. robotnik)dr. robotnik's machine explodes. I tried it with an integer (int hitpoints = 10), but it wont work! any suggestions?
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: dr. robotnik wont die!

Postby Azou » Tue Sep 02, 2008 9:11 pm

Just try to do
Collision/topSide of dr. robotnik/Create actor/Explosion
Also,if you want to destroy dr. robotnik,put
Collision/topside ofdr. robotnik/Destroy actor/dr. robotnik.
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: dr. robotnik wont die!

Postby Kalladdolf » Wed Sep 03, 2008 2:24 pm

Colission/Any side/
Code: Select all
hitpoints = hitpoints - 1; // that will take 1 hitpoint away from him every time you jump on him.
if(hitpoints < 0) // if he's got no energy left
{ // robotnik dies;}
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: dr. robotnik wont die!

Postby Azou » Wed Sep 03, 2008 2:52 pm

Is it necessary to put hitpoits? :?:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: dr. robotnik wont die!

Postby Kalladdolf » Wed Sep 03, 2008 7:16 pm

well, I thought (if I'm not mistaken) he wanted 'em... ?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: dr. robotnik wont die!

Postby Azou » Wed Sep 03, 2008 8:19 pm

Oh,ok!!
:mrgreen:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: dr. robotnik wont die!

Postby tlah » Wed Sep 03, 2008 9:57 pm

==Kalladdolf== wrote:Colission/Any side/
Code: Select all
hitpoints = hitpoints - 1; // that will take 1 hitpoint away from him every time you jump on him.
if(hitpoints < 0) // if he's got no energy left
{ // robotnik dies;}

hey, thanks! ill try it! :D :D :mrgreen: :) :D
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: dr. robotnik wont die!

Postby Kalladdolf » Thu Sep 04, 2008 12:51 pm

side note: if you don't use hitpoints, robotnik will die the first time you jump on him.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron