Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I'm not sure this is the perfect solution, but here is how I managed to create pushable block puzzles' buttons:
1. Place a wall button in your room
2. Connect this button with all "pushable block floors" and "pushable block floor triggers" of your puzzle (= 1 "onActivate" hook per floor tile)
3. Create a lua script entity
4. In the code field of the script entity, copy-paste this:
function Reset()
spawn("teleportation_effect",party.level,party.x,party.y,0,0)
pushable_block_1:destroy()
pushable_block_2:destroy()
pushable_block_3:destroy()
pushable_block_4:destroy()
spawn("pushable_block",LEVEL,X,Y,0,0,"pushable_block_1")
spawn("pushable_block",LEVEL,X,Y,0,0,"pushable_block_2")
spawn("pushable_block",LEVEL,X,Y,0,0,"pushable_block_3")
spawn("pushable_block",LEVEL,X,Y,0,0,"pushable_block_4")
end
5. Connect the button with the script entity you just created (onActivate => call "Reset" function)
I hope it works for you.
cheers
Doryann
I'll give it a try, thank you for your help :)