Skip to content

Fix event blocks - #14

Open
dexter-jones wants to merge 1 commit into
Brackets-Coder:Civero's-branchfrom
dexter-jones:patch-2
Open

Fix event blocks#14
dexter-jones wants to merge 1 commit into
Brackets-Coder:Civero's-branchfrom
dexter-jones:patch-2

Conversation

@dexter-jones

Copy link
Copy Markdown

I posted the issue on the issues tab of civeros pushes, and i went into it myself and found that most of the rendering functions were using vm.editingTarget, which only refers to the sprite open. with multiple sprites, this does not work.

every instance has been changed from
async loadTexture(args) {
const img = vm.editingTarget.getCostumes()...

to

async loadTexture(args, util) {
const target = util.target;
const img = target.getCostumes()...

with the util parameter

I posted the issue on the issues tab of civeros pushes, and i went into it myself and found that most of the rendering functions were using vm.editingTarget, which only refers to the sprite open. with multiple sprites, this does not work.

every instance has been changed from 
async loadTexture(args) {
  const img = vm.editingTarget.getCostumes()...

to

async loadTexture(args, util) {
  const target = util.target;
  const img = target.getCostumes()...

with the util parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant