Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] "unload" script runs right after leaving the frame

オープン
#115 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
game-dev

調査の方向性

添付されたサンプルプロジェクトで問題を再現し、正方形をクリックしたときのフレーム切り替えの経路を追跡してください。フレームを離れることとの相対的な位置で、unload スクリプトがどこで呼び出されるかを調査してください。スクリプトがフレームの変更前に実行され、最初のフレームの clip が次のフレームに影響を与えたりエラーを発生させたりせずに自身のプロパティを更新できれば、完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug
when an object runs its unload script, the script is run right after the frame leaves. the most sensible thing to use unload for is to reset a clip for next time, but by the time the code tries to do so, it's already on a different frame and the clip is no longer visible.

To reproduce
Steps to reproduce the behavior:

  1. create 2 frames, stop() on the first one, and make a way to go between the 2 frames
  2. create a clip on the first frame
  3. add an unload script and make it try to set one of its own properties
  4. code will not execute properly

Expected behavior
unload scripts run right before exiting the frame

Editor version
all modern versions

Additional context
github's being github so here's a zip with a sample file: My Project3-17-2026_21-40-23.wick.zip
click the square in the bottom right to switch frames. one would expect the top left clip in frame 1 to rotate upon unloading, but it's actually the clip in frame 2 that gets rotated. if you delete the 2nd frame clip, you will instead get an error.

relevant discord thread: https://discord.com/channels/1406876763920797717/1481550313780416565

主要言語
JavaScript
スター
53
フォーク
22
平均マージ
2日 10時間
マージ済み PR(30日)
12

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Candlestickers/Candlestick のほかの issue

Candlestickers/Candlestick の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。