Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Bouncing Exploding Ball

Author
Message
Steve1982
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location:
Posted: 3rd Jul 2009 21:46
I'm creating a room that has balls around that when they contact the player they explode. Also, if the player shots a ball, it should explode as well. I need help with getting the balls to continuosly bounce. Any suggestions?

Thanks
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 4th Jul 2009 04:54 Edited at: 4th Jul 2009 05:04
Quote: "I'm creating a room that has balls around that when they contact the player they explode. "


That's the funniest thing I've ever heard


Kravenwolf

NiGHTS
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 6th Jul 2009 17:24
I had a similar entity in a game I am currently working on. While mine don't explode and you may need help in that aspect, here is the script for my entity:



What you would need to do is get rid of spinning ":state=0:spinrate=20" unless you want your entity to spin, and then change the floatrate (bounce or float, depending on value) to 100, or until you get the desired bouncing effect. As of now, I don't know how you could go about the ball exploding, however, when the player comes into contact with the ball or what have you, the player's health will decrease by 2 points.

If you really want the entity to explode, you may have to animate that, it might be impossible with scripting. Once you have the ball animated to explode, then you could have that animation scripted at the frame the explosion occurs on.

Actually, I browse around the boards just to critique stories to make them more original, it seems that many are doing the "Shoot everyone in your sight"
-Light Samus
Steve1982
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location:
Posted: 6th Jul 2009 20:17
Thanks for the tip. I'll give it a try.

Steve
Steve1982
15
Years of Service
User Offline
Joined: 23rd Jun 2009
Location:
Posted: 19th Jul 2009 21:52
I tried using your script but the ball does not move. I'm new at this so I'm not sure what to try next. Any help would be appreciated.

Need help with your computer? Try
www.byusersforusers.com
It's totally free.

Login to post a reply

Server time is: 2024-11-25 03:50:17
Your offset time is: 2024-11-25 03:50:17