Solarus-Games English Forum

Solarus => Development => Topic started by: Dark_Link on April 23, 2015, 11:42:48 PM

Title: HUD Problems
Post by: Dark_Link on April 23, 2015, 11:42:48 PM
Hy.
Try to rebuild the Engine in Zelda Style. ike in Christophos Tut. Works fine and have a lot of fun, but now in Part 26 Le Hud (can´t wait on the english tut ;D) i have huge problems.
I think the problem is in the Tut, solaris is version 1.1 and i use 1.3.1. I try a lot to fix the changes but it won´t work. I just started with scripting/coding, so i am not the pro. Maybe someone have a good idea how to solve this problem ?

Sorry for my bad English and by the way a huuuuuge THANKS for this cool Projekt. Have a lot of Fun with the Engine and maybe in some Years i can present my first selfmade game..
Title: Re: HUD Problems
Post by: Christopho on April 24, 2015, 09:53:01 PM
Hi!
Solarus 1.2 introduced a few incompatible changes in the Lua API, so there is one obsolete thing in the tutorials about the HUD: the surface:set_transparency_color() call. There is no more set_transparency_color() function. Instead, just use the alpha channel to have transparency, and use surface:clear() to clear a surface.
This is explained in the "Surfaces" part of the migration guide here: http://wiki.solarus-games.org/doku.php?id=upgrade_from_1.1_to_1.2#surfaces
I am pretty sure that this should only incompatibility problem with the HUD tutorials.
Title: Re: HUD Problems
Post by: Dark_Link on April 27, 2015, 12:55:14 AM
Thanks a lot for the fast answer. Works fine . Look forward on your next Tutorials  :)