Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Diarandor

Pages: 1 ... 63 64 [65]
961
Development / Question: mirrors and reflections
« on: February 03, 2015, 08:49:13 pm »
Would it be possible (in the current or future versions of solarus) to program scripts for mirrors showing a reflected image of what is next to them, or water reflecting the image of what is above?

(It's just out of curiosity. I don't need these entities for the game I'm working on, but it would be cool if possible.)

962
Development / Re: I need some help to customize the command "action".
« on: December 14, 2014, 05:11:52 pm »
Thanks again!
I will do as you say, mimicking some functions of the HUD to manage my custom actions.

963
Development / I need some help to customize the command "action".
« on: December 14, 2014, 03:26:47 am »
Hi! I was trying to execute a function (for example, to open a menu in the game) when the "action" button is pressed, but only in case the hero is not performing another action (talking, lifting,...). To do that, I tried to use the function:

function game:on_command_pressed(command)
  if command == "action" and game:get_command_effect("action") == nil then
     ---- ...my function...
  end
end

The problem is that this does not work when interacting with custom entities because the function game:get_command_effect("action") returns nil, and I think it is not possible to assign a command effect when the hero is close to a custom entity before the "action" command is pressed (maybe I'm wrong).

Could you help me to solve this problem?
Thanks in advance!

964
Development / Re: Help with light and darkness
« on: September 20, 2014, 05:42:18 pm »
Thanks a lot again for your help!

965
Development / Help with light and darkness
« on: September 20, 2014, 03:28:31 am »
Hi,

I would like to know if it is possible to program dark rooms where there are several sources of light (including the hero, some moving enemies, and torches on walls). Outside the illuminated areas there would be opaque darkness. Is it possible to do this? And how?

Thanks for your help!!!

966
Bugs & Feature requests / Problem after using hero:set_tunic_sprite_id()
« on: September 13, 2014, 07:20:34 pm »
Hi! I have the following problem:

After changing the hero's sprite with the function hero:set_tunic_sprite_id("tunic_name"), the hero is not hurt when colliding with an enemy. I realized that this only happens when the name of the tunic is not of the form "tunicX". Could this be a bug?

Thanks in advance for your help!

Pages: 1 ... 63 64 [65]