Hey Akamatsu. One thing that will help is putting some periods in your sentences what you ask questions, I was a bit confused trying to read that. But the take away is you're trying to recreate some of the freezing behavior of the redeads in Ocarina?
There's a couple things you'll probably need. The way I would do it requires a basic understanding of timers and some basic enemy programming.
For the freezing part specifically, I think you want the redeads to freeze link when he's close enough? You'll have to have your enemy script check the distance to the hero every several milliseconds, you can find a lot of enemy scripts that do that.
Once the player is close enough, you'll probably want to use hero:freeze() to stop the player moving. Then you'll set a timer and after 3-4 seconds, call hero:unfreeze().
If you have other questions, feel free to ask, I'm not sure if you've seen the documentation for Solarus, but look through there for timers and such.
http://www.solarus-games.org/doc/latest/lua_api_timer.html
There's a couple things you'll probably need. The way I would do it requires a basic understanding of timers and some basic enemy programming.
For the freezing part specifically, I think you want the redeads to freeze link when he's close enough? You'll have to have your enemy script check the distance to the hero every several milliseconds, you can find a lot of enemy scripts that do that.
Once the player is close enough, you'll probably want to use hero:freeze() to stop the player moving. Then you'll set a timer and after 3-4 seconds, call hero:unfreeze().
If you have other questions, feel free to ask, I'm not sure if you've seen the documentation for Solarus, but look through there for timers and such.
http://www.solarus-games.org/doc/latest/lua_api_timer.html