Search found 1747 matches

by raidho36
Sat May 25, 2019 10:51 pm
Forum: General
Topic: TV Effect
Replies: 5
Views: 163

Re: TV Effect

You can just use a pre-recorded video and play it in the game window. Or in fact, make the entire logo animation a video and play that.
by raidho36
Sat May 25, 2019 9:55 pm
Forum: Support and Development
Topic: How do I create a texture atlas
Replies: 1
Views: 50

Re: How do I create a texture atlas

You simply use any texture atlas generator you want.
by raidho36
Sat May 25, 2019 6:37 pm
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 2
Views: 61

Re: Find globals with LuaJIT (Linux, probably Mac too)

Alternatively:

Code: Select all

for k, _ in pairs ( _G ) do print ( k ) end
by raidho36
Sat May 25, 2019 6:06 pm
Forum: General
Topic: TV Effect
Replies: 5
Views: 163

Re: TV Effect

Basically, it's a three frame animation. First frame is your first logo, second "frame" is the video of the TV static, third frame is the second logo.

You could use an animation manager. Or for something this simple, indeed just hard-code it to display these three assets in succession.
by raidho36
Sat May 25, 2019 6:33 am
Forum: Support and Development
Topic: Gamera exaggerate minimap features
Replies: 1
Views: 73

Re: Gamera exaggerate minimap features

You'd usually have a totally separate rendering method for the minimap, because minimap isn't just a smaller camera panning over larger map area, but a schematic representation of what's going on in the game. If you make a rendering routine from the ground up, you wouldn't have problems like this. T...
by raidho36
Thu May 23, 2019 2:01 pm
Forum: General
Topic: Performance - what are your standards?
Replies: 14
Views: 11501

Re: Performance - what are your standards?

You can run garbage collector manually with very predictable performance cost. You can run a small step of garbage collection every frame, and when frame lags might be acceptable (when level changes, or at checkpoints, or during cutscenes or otherwise uneventful stretches) do a full garbage collecti...
by raidho36
Thu May 23, 2019 1:59 pm
Forum: Support and Development
Topic: How to switch ipairs without having to rewrite?
Replies: 3
Views: 147

Re: How to switch ipairs without having to rewrite?

Try checking out programming books too, these write volumes about all the ways you can accomplish things in programming.
by raidho36
Thu May 23, 2019 3:53 am
Forum: Support and Development
Topic: [SOLVED] RPG Party System
Replies: 6
Views: 339

Re: RPG Party System

local path = { } function player:move ( ) ... table.insert ( path, 1, self.position ) if #path > 400 then table.remove ( path ) end npc1.position = path[ math.min ( #path, 100 ) ] npc2.position = path[ math.min ( #path, 200 ) ] npc3.position = path[ math.min ( #path, 300 ) ] npc4.position = path[ m...
by raidho36
Wed May 22, 2019 3:41 am
Forum: Support and Development
Topic: Convert a pixel-perfect ImageFont to a TrueType font?
Replies: 5
Views: 196

Re: Convert a pixel-perfect ImageFont to a TrueType font?

There are online font generators that can create fonts from images. So, you can try generating a font image from your image font, and then feed it to one of those font generators.
by raidho36
Tue May 21, 2019 1:21 pm
Forum: Support and Development
Topic: [SOLVED] RPG Party System
Replies: 6
Views: 339

Re: RPG Party System

Alternatively, you can record your leader character's positions for up to certain distance, and make follower characters take the locations on that path at a given offset from the leader. You can also make the "join the line" animation by interpolating between NPCs original position to its desired p...