You can also use the function "item:add_amount(amount)",
which should be equivalent to "item:add_amount(item:get_amount() + 1)".
which should be equivalent to "item:add_amount(item:get_amount() + 1)".
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.
Show posts MenuQuote from: dpro_games on August 03, 2016, 01:38:46 AM
It does not work...
Where I need to add this ligne ?local item = ...
function item:on_created()
item:set_savegame_variable("small_key_save")
self:set_amount_savegame_variable("small_key_save")
item:set_shadow("small")
item:set_can_disappear(false)
item:set_brandish_when_picked(true)
item:set_sound_when_picked("picked_small_key")
end
item:get_amount_savegame_variable()
item:set_amount_savegame_variable()
item:set_savegame_variable("id_for_the_amount_of_keys")
function item:on_created()
item:set_savegame_variable("id_for_the_amount_of_keys")
item:set_shadow("small")
item:set_can_disappear(false)
item:set_brandish_when_picked(true)
item:set_sound_when_picked("picked_small_key")
end
Error: In create_door: bad argument #1 to ? (Bad field 'opening_condition' (equipment item 'small_key' is not saved))
Quote from: Satoh on July 06, 2016, 08:31:41 AM
Diagonal walls only work when the player is actually rubbing up against the wall though.
It may not be clear what I'm trying to accomplish... but for example, if I had a sloped area that was 16 pixels wide, and 256 pixels from diagonal edge to diagonal edge, I wouldn't want the player to just walk straight across it without moving diagonally, but at that size it would be entirely possible to miss both edges, which is where the walls would be.
Its difficult to explain exactly what circumstances this would be used aside from simply pointing out that I need some raised platforms on a section of floor, and it won't look right if the player traverses them as if they were flat.
Quote from: wrightmat on July 31, 2016, 04:15:32 PM
These are really cool - loved the video! Great work!