RPG Maker Forums

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
Code:
   ImageManager.loadCard = function(filename, hue) {
        return this.loadBitmap('img/cards/', filename, hue, false);
    };
My custom createCards function that I wrote for the Spriteset_Battle.
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);
    }
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 :)

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top