For the past few days I've wanted to make a custom end screen like the one in the "Triple baka pack" mod, so I took the base code but it didn't work, can anyone help me?
I’ll check it out later how to do it but try making a textures folder and put the png in there and name the image “end”
Don't double post! Use that edit button! Post automatically merged:
LUA:
TEX_CAKE = get_texture_info("end")
function render_end()
if render_end then
local x = djui_hud_get_screen_width() / 2 - TEX_CAKE.width / 2
local y = djui_hud_get_screen_height() / 2 - TEX_CAKE.height / 2
if gNetworkPlayers[0].currLevelNum ~= LEVEL_ENDING then
return
end
djui_hud_set_color(255, 255, 255, 255)
djui_hud_render_texture(TEX_CAKE, x, y, 1, 1)
end
end
hook_event(HOOK_ON_HUD_RENDER_BEHIND, function()
djui_hud_set_resolution(RESOLUTION_N64)
render_end()
end)
I’ll check it out later how to do it but try making a textures folder and put the png in there and name the image “end”
Don't double post! Use that edit button! Post automatically merged:
LUA:
TEX_CAKE = get_texture_info("end")
function render_end()
if render_end then
local x = djui_hud_get_screen_width() / 2 - TEX_CAKE.width / 2
local y = djui_hud_get_screen_height() / 2 - TEX_CAKE.height / 2
if gNetworkPlayers[0].currLevelNum ~= LEVEL_ENDING then
return
end
djui_hud_set_color(255, 255, 255, 255)
djui_hud_render_texture(TEX_CAKE, x, y, 1, 1)
end
end
hook_event(HOOK_ON_HUD_RENDER_BEHIND, function()
djui_hud_set_resolution(RESOLUTION_N64)
render_end()
end)
I’ll check it out later how to do it but try making a textures folder and put the png in there and name the image “end”
Don't double post! Use that edit button! Post automatically merged:
LUA:
TEX_CAKE = get_texture_info("end")
function render_end()
if render_end then
local x = djui_hud_get_screen_width() / 2 - TEX_CAKE.width / 2
local y = djui_hud_get_screen_height() / 2 - TEX_CAKE.height / 2
if gNetworkPlayers[0].currLevelNum ~= LEVEL_ENDING then
return
end
djui_hud_set_color(255, 255, 255, 255)
djui_hud_render_texture(TEX_CAKE, x, y, 1, 1)
end
end
hook_event(HOOK_ON_HUD_RENDER_BEHIND, function()
djui_hud_set_resolution(RESOLUTION_N64)
render_end()
end)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.