Scripts / [SOLVED] function display_init(e) LoadImages("display",0)

Author
Message
Zaldibar Giradin
4
Years of Service
User Offline
Joined: 27th May 2019
Location:
Posted: 6th Jun 2019 19:42 Edited at: 6th Jun 2019 19:46
This post has been marked by the post author as the answer.
Hi GG's, we need your help again on a simple little script.
A LoadImages("display",0) script. I would like to use this script to add multiples images on screen but the problem is it will only add one
image with the name 000.png. I tried changing the name from (function display_init(e)) and (function display_main(e)) to (function display2_init(e)) (function display2_main(e)) and also the image it's self to 001.png. either it shows 000.png or nothing at all.

[/-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Displays mercenary banner

display_banner = 0

function display_init(e)
LoadImages("display",0)
end

function display_main(e)

SetImagePosition(19,10.2)
ShowImage(0)
end]

The author of this post has marked a post as an answer.

Go to answer
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 7th Jun 2019 13:09
I would use the sprite system instead. Much easier to add and control these.

Check out one of the included demo games to see how these work (I’m assuming they are still included as standard with GG - think it was cartoon world one that used sprite HUDs a fair bit).

Cheers.
Zaldibar Giradin
4
Years of Service
User Offline
Joined: 27th May 2019
Location:
Posted: 7th Jun 2019 20:24
Thanks!
PM

Login to post a reply

Server time is: 2024-04-26 20:12:56
Your offset time is: 2024-04-26 20:12:56