Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
programmatic text
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#11
RE: programmatic text

(10-28-2014, 12:27 PM)FlawlessHappiness Wrote: ^^^What I did. Just use variables...
[...]
By the way, the way I showed numbers is by having an invisible lamp with a billboard tied to it. This way I can just turn it on and off with a nice fade-effect.

Yeah, that sounds like an efficient way of fading it in. If the digits were made as separate lamp entities, you can easily create one using CreateEntityAtArea and SetLampLit. Also, since you're (B) using the 1.3 patch, you can also use the SetEntityPos("digit_2", GetEntityPosX("digit_4") + 1, etc); to place one digit after the previous one. Perhaps a compact assemble of script like so can make it easy to setup any number?

I'm thinking you could create a private void like one of these:
PHP Code: (Select All)
CreateNumber(4200);
CreateNumberAtEntity(4200"name");
CreateNumberAtPos(4200xyz);//the position being the first digit, then the next are created relative to that. 

(This post was last modified: 10-28-2014, 01:16 PM by Mudbill.)
10-28-2014, 01:15 PM
Find


Messages In This Thread
programmatic text - by MrBehemoth - 10-25-2014, 01:47 PM
RE: programmatic text - by Romulator - 10-25-2014, 03:35 PM
RE: programmatic text - by MrBehemoth - 10-26-2014, 10:56 PM
RE: programmatic text - by Daemian - 10-27-2014, 01:15 PM
RE: programmatic text - by MrBehemoth - 10-27-2014, 06:20 PM
RE: programmatic text - by FlawlessHappiness - 10-28-2014, 12:08 PM
RE: programmatic text - by MrBehemoth - 10-28-2014, 06:10 PM
RE: programmatic text - by FlawlessHappiness - 10-28-2014, 07:08 PM
RE: programmatic text - by Romulator - 10-27-2014, 09:24 AM
RE: programmatic text - by Ongka - 10-27-2014, 12:21 PM
RE: programmatic text - by Mudbill - 10-28-2014, 12:19 PM
RE: programmatic text - by FlawlessHappiness - 10-28-2014, 12:27 PM
RE: programmatic text - by Mudbill - 10-28-2014, 01:15 PM
RE: programmatic text - by MrBehemoth - 11-01-2014, 03:51 PM
RE: programmatic text - by Daemian - 11-01-2014, 04:04 PM
RE: programmatic text - by MrBehemoth - 11-01-2014, 04:23 PM
RE: programmatic text - by Mudbill - 11-01-2014, 04:38 PM
RE: programmatic text - by Daemian - 11-01-2014, 06:53 PM
RE: programmatic text - by MrBehemoth - 11-01-2014, 08:13 PM



Users browsing this thread: 1 Guest(s)