Scripts / note.lua multiple use issue

Author
Message
Jack T
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Feb 2015
Location: Nowhere Land
Posted: 28th Sep 2015 10:16
Hi,

First of all, sorry for reopening a thread, I couldn't find the one where the note.lua is supposed to be
I think SmallG did the script.

I have an issue when I use the script twice in one level, I have note.lua and note2.lua with two image folders named note and note2 but it keeps showing the pictures from the first image folder. I renamed what needed be in the script, but stil doesn't work.

If my english is understandable, I hope someone can help me.

Thanks in advance
Why pick a side, if there's no good and bad...
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 28th Sep 2015 10:52
don't use numbers at the end of a script name, try notea.lua and noteb.lua. That should fix it.
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).
Interests: Drumming, Saxophone, Art, Theatre, Music.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th Sep 2015 12:24 Edited at: 28th Sep 2015 12:25
thanks, fixed
moved the loadimages call inside the script so now it will make sure it's loading the correct image when called to display - you still need to rename the script and change the LoadImages() folder (it's now at line 29) if you want multiple notes
note1.lua
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Jack T
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Feb 2015
Location: Nowhere Land
Posted: 28th Sep 2015 13:10
Thanks very much guys, especially SmallG! Works great
Why pick a side, if there's no good and bad...
PM

Login to post a reply

Server time is: 2024-12-22 06:48:17
Your offset time is: 2024-12-22 06:48:17