Processing is too fast and all items are erased(resorved)

uni00

Member
If you click the position of the first slot in the inventory, the 0th item in the ds list will be deleted and the 1st and subsequent ones will be automatically filled to the 0th. Therefore, the code of the image is too fast to process, so the first and subsequent items that are packed to the 0th position will also be deleted. What should i do?
 

Attachments

woods

Member
maybe?

keyboard_check -checks if a button is pressed
keyboard_check_pressed -checks if a button is pressed and fires only once
keyboard_check_released -check if a button is released and fires once
 

uni00

Member
[QUOTE = "woods、投稿:454083、メンバー:513"]
多分?

keyboard_check-ボタンが押されたかどうかをチェックします
keyboard_check_pressed-ボタンが押されているかどうかをチェックし、1回だけ起動します
keyboard_check_released-ボタンが離されて1回発火したかどうかを確認します
[/見積もり]thank you so much!
 
Top