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 / how to add a 'life' with a pick up.

Author
Message
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 24th Oct 2012 01:45
This one has me stumped. I am trying to increase the players lives when he runs over a pickup (think a 1up - for the old school gamers out there)

I hope it's a really simple fix that will make me blush like a prepubescent boy after his first kiss!

I have racked my brains an searched all over, but, i can't find anything.

I have come to the final conclusion that, NOBODY has ever wanted their players to gain lives; only to lose them! What an evil lot we are!

Anyway, i hope someone can either embarrass me, or point me in the right direction.

Unfamillia


BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th Oct 2012 01:47 Edited at: 24th Oct 2012 01:53


Add the script to the dynamic entity. We use it with a "coin" entity that floats once you open a chest.

Enjoy...


There's no problem that can't be solved without applying a little scripting.
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 24th Oct 2012 01:50
@Black Fox.

Always there to share your pearls of wisdom, developed deep within the fox hole!

Thank you.

Fast response too. You must be patrolling your territory!

Unfamillia


BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th Oct 2012 01:51
Quote: "Always there to share your pearls of wisdom, developed deep within the fox hole!

Thank you.

Fast response too. You must be patrolling your territory!"


I am always 'patrolling'. Check the script, I just made an edit.


There's no problem that can't be solved without applying a little scripting.
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 24th Oct 2012 02:09
I changed it slightly to meet my needs, but that is perfect!

Thanks again for taking the time to show me that.

Unfamillia


BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th Oct 2012 02:12
Quote: "I changed it slightly to meet my needs, but that is perfect!

Thanks again for taking the time to show me that. "


You are welcome. I meant to say feel free to alter to your needs, but I assumed you knew that already.


There's no problem that can't be solved without applying a little scripting.
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 1st Nov 2012 09:41
Thanks for the script. It works fantastically. I have amended it so that you don't have to press enter to pick up the collectable and have made three versions of collectable. (1 extra life, 2 extra lives and lose 1 life)

Check out my Impuzzable wip thread to play the demo.

Thanks for all your help

Unfamillia

Login to post a reply

Server time is: 2024-11-23 19:46:17
Your offset time is: 2024-11-23 19:46:17