Scripts / Needing Help with 2 scripts if they are even possible in this engine.

Author
Message
Super Masgamer
Audio Media Maker
6
Years of Service
User Offline
Joined: 2nd Dec 2018
Playing: Quad Damage
Posted: 9th Aug 2019 17:49
Hey guys is it possible to have a script to tally up collectibles in a level? Like for example if I have 3 hidden items in my level. Can there be a way to keep track of them?

Next question is, is there a way to show an end of the level screen with all your stats from that level. For example, show how long it took the player to complete the level. If they found any secrets. How many collectibles ETC.

Thanks guys
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 9th Aug 2019 18:10
Yep both are possible.
Been there, done that, got all the T-Shirts!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th Aug 2019 18:19
yes, say you have a book, a key and a gold bar in your level you can give each a script which holds some variable for itself to show if they have been collected or not
i.e.

then
have a script to show that data on the screen for the player (this is better to do separately so you can have it always active)


for showing stuff at the end of the level yes, it requires editing the winzone.lua to have some delay before it triggers the next level
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-22 14:21:46
Your offset time is: 2024-12-22 14:21:46