- Joined
- Dec 29, 2018
- Messages
- 5
- Reaction score
- 0
- First Language
- German
- Primarily Uses
- RMMV
Hi there,
I would consider myself a relatively seasoned JS-Scripter and also collected some experience in RPGMaker XP in my younger years. Right now I'm trying to make a custom battle system with cards.
For a first Proof-Of-Concept my idea was to use skills as the cards and in the note tag of the skill I would reference the image for the card to be used.
e.g. <image: 0001.png>
Right now I have an array of IDs (the IDs of the skills) that represents my deck and now I want to show the corresponding pictures on my battlescreen.
Whats the best way to do this? I have a custom folder full of the card images.
What I have so far:
A custom loadCard function
My custom createCards function that I wrote for the Spriteset_Battle.
The function gets called, I get the console log, however I see no picture. Is this the right way? Should I use Sprite_Picture? Is something important missing?
What I also want to do is add the pictures to the battlefield as a child so they get updated constantly. Is this correct?
Thanks for any help,
cheers
I would consider myself a relatively seasoned JS-Scripter and also collected some experience in RPGMaker XP in my younger years. Right now I'm trying to make a custom battle system with cards.
For a first Proof-Of-Concept my idea was to use skills as the cards and in the note tag of the skill I would reference the image for the card to be used.
e.g. <image: 0001.png>
Right now I have an array of IDs (the IDs of the skills) that represents my deck and now I want to show the corresponding pictures on my battlescreen.
Whats the best way to do this? I have a custom folder full of the card images.
What I have so far:
A custom loadCard function
Code:
ImageManager.loadCard = function(filename, hue) {
return this.loadBitmap('img/cards/', filename, hue, false);
};
Code:
Spriteset_Battle.prototype.createCards = function(){
var card = new Sprite_Picture();
card.bitmap = ImageManager.loadCard('0001');
card.x=1;
card.y=1;
card._width=200;
card._height=200;
this._battleField.addChild(card);
console.log("battlefield",this._battleField);
}
What I also want to do is add the pictures to the battlefield as a child so they get updated constantly. Is this correct?
Thanks for any help,
cheers

