Hello Guys, first of all I should say that I'm from Germany and my English is not very good. But I'll try my best, to ask in an understanding way and don't make it too hard for you to read.
Im an absolutely Newbie, but I'm doing quite good for the amount of time that I spent to Construct 2. So, what is my Problem?
Im trying to make my own Cardgame. I designed all the Layouts for the Menu with Photoshop and linked them to each other with the use of invisible sprites and instance variables. This is working.
But now I'm on a very tricky point. I designed my Deck-Builder. For now, it's just very simple and I just made to little buttons, to switch between all the cards in my set. I added two Buttons, which are called "Previous" and "Next".
So, when the User is clicking on Next, he should see the next Card in the Gallery. Same for the other button, just with an insert-effect.
I defined an simple Array with 5 units on the x-Axis. Then, I set up the position from my Sprite to the Previewwindow from myLayout. I added more sprites to the animations of the first one I gave them an ID_Name. For example:
I was hoping, that I could easily switch between the sprites with a global number - card_num. But this is not working for me.
I did it this way:
Set animations to "ID_" &Cards.at(card_num) (play from beginning)
Set text to cards.at(card_num) < so there will also be a text, that will show the name of the chosen card.
And now my most hated part:
I did a Button-Event. On Clicked, this button should add 1 to my global. I used the a system-action, to make it work -> System -> "Add 1 to card_num"
But when I click my button, the sprite is not changing my Images. I can't find a solution for this problem. Hopefully you guys can help me!
Thank you so much,