Scripts / What is wrong in my LoadImages script?

Author
Message
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 31st Dec 2014 18:35 Edited at: 23rd Oct 2015 18:46
I want to show just one non animate image, in the centre of screen, and full screen.
When I tested it, the prompts ("Press E To showed image" and "Press E To hide image") are showed with "E" pressed, but image does not.



What I am doing wrong?
What I've missing here?

Thanks in advance for all feedbacks.

3om
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 31st Dec 2014 19:41
Did you name it 000.png and placed it in scriptbank\images\test\ ?

3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 31st Dec 2014 19:57
Yes, I did it.

3com
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 1st Jan 2015 10:28
I think you are carrying forward your key press within one script cycle - you are showing the image then immediately hiding it again. Try changing this part of the script as below. Basically exiting the script between image states with this change (adding 'return'):



3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Jan 2015 21:04
Quote: "I think you are carrying forward your key press within one script cycle - you are showing the image then immediately hiding it again. "

You are right!, thanks a lot for feedback.
Now it work like a charm, thanks to all.

3com
PM

Login to post a reply

Server time is: 2024-05-07 13:27:52
Your offset time is: 2024-05-07 13:27:52