Scripts / Some Interesting New Panel And Text Commands in v1.01

Author
Message
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 12th Feb 2015 20:06
Can now place text anywhere on the screen and also create neat transparent panels. There can be more than one text string and panel shown at a time too. Just did a quick test with this:



Sadly seems like can still only place one image at a time unless I'm missing something, but the new text commands and panel open up a lot of possibilities.

Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 12th Feb 2015 21:08 Edited at: 12th Feb 2015 21:16
Wow finally. Didn't know you can make multiple lines of text yet. I see you have 3 numbers beside each text. I would assume this would be the x and y position on the screen. Is the 3rd number to define the layer the text is on?

Also how would you go about hiding the text or killing one of the lines of text after you are finished with displaying it?

Sounds like we could very soon start making our own inventory menus. Though it be just text for the meantime. Least its a great step in the right direction. Nice find
i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce 420 GT
Corno_1
GameGuru Tool Maker
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 12th Feb 2015 21:19
Where did you get them? I didnĀ“t read anything from them...
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 12th Feb 2015 21:30 Edited at: 12th Feb 2015 21:31
I think that's the problem. We need a help index within the engine that displays a section related to the Lua commands. (among other things).

It should also be updated with each build that includes new changes that need to be mentioned.
i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce 420 GT
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 12th Feb 2015 21:32
For Text:
X, Y are first two numbers - appear to be % of screen (like the image command)
third number is text font size

For TextCenterOnX:
Same as above, but the text string is centred on the X,Y co-ordinate

For Panel:
First two are x,y of top left of panel, second two are x,y of bottom right of panel

If you stop calling the command, the text is removed.

I was just browsing global.lua and gave them a go ...

Angiel
9
Years of Service
User Offline
Joined: 21st Dec 2014
Location: Italy
Posted: 13th Feb 2015 10:54

Excellent news, it works fine with the variables.
sorry for my bad English, I write from Italy.
Angiel
9
Years of Service
User Offline
Joined: 21st Dec 2014
Location: Italy
Posted: 15th Feb 2015 17:56

I tried the commands "Text (1,50,1," Total Points = ".. punti_totali);"
it works, but when the player moves away a little from the Entity to which it is associated lua script (with the "Text (1,50,1," Total Points = ".. punti_totali)") the word "Total Points" disappears from screen. The word appears again if I get close again to the Entity that contains the script.
Any advice?
thank you
sorry for my bad English, I write from Italy.
Corno_1
GameGuru Tool Maker
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 15th Feb 2015 20:15 Edited at: 15th Feb 2015 20:21
Make a triggerzone and there place with no condition your command in the main triggerzones do not fall under culling, different from entities

Also interesting: we can now use folder to sort our scripts
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 15th Feb 2015 22:52
@Angiel - set 'Always Active' to 'Yes' in the properties panel of the object you have your script attached to.

Angiel
9
Years of Service
User Offline
Joined: 21st Dec 2014
Location: Italy
Posted: 16th Feb 2015 05:27

thanks for replies.
@ Corno_1, I had already associated the script to a triggerones but same problem.
@ Cybernescence, yes, so works fine (also set "Static Mode" -NO-)
sorry for my bad English, I write from Italy.
science boy
15
Years of Service
User Offline
Joined: 3rd Oct 2008
Location: Up the creek
Posted: 16th Feb 2015 12:23 Edited at: 16th Feb 2015 12:35
would that work with a hud image as in go near it pops up go further away and it disappears. this is good for me. as i like an image to pop up on screen to show what it is in an image box i created ages ago. p.s love the bob emoticon makes me want to have slack time
an unquenchable thirst for knowledge of game creation!!!

Login to post a reply

Server time is: 2024-05-07 08:53:55
Your offset time is: 2024-05-07 08:53:55