Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPGcode Functions for dynamically adding/removing layer images #38

Closed
swordmaster2k opened this issue Feb 25, 2019 · 0 comments
Closed
Assignees
Milestone

Comments

@swordmaster2k
Copy link
Owner

The default battle system makes use of custom functions to add/remove layer images, these should be included in the RPGcode framework.

// Adding a layer image dynamically
rpgwizard.craftyBoard.board.layers[1].images.push({src: "speech.png", x: 503, y: 267, id: "0349182b-7b6e-43ef-ac8a-ea514a7d8a6e"});

// Removing the layer image again
rpgwizard.craftyBoard.board.layers[1].images.pop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant