Sheep798's Recent Forum Activity

  • I would like to apologise since English is not my native language and I didn't explain my issue properly.i am not looking to pick an instence variable. Let me please explain, I have in a layer 1 object 3 times, I was able to set in each on of those separate values for their instance variables what I am looking for is let's say how do I say to the engine that when I press the object with iid 2 to do this and when I press the object with iid 4 do something else

  • So basically I have an object that holds different characters per frame, each character (frame) has its own stats that takes them for an array.

    Also each character(frame) comes with 4 skills.

    I made the skills like the characters, 1 object with multiple frames and each frame comes with a value that take from an array.

    Now here's the problem I encountered.

    The game is turn based so since there's 1 object with multiple frames that act as different characters I need to define that now it's object#0 turn then when he finishes there's the object#1 that needs to act and I don't really understand how can I do that.

    Now let's say that making 2 more duplicates of the same object is an option and that it won't affect preformance, I still need to pick the skill instance to get the specific value I need.

    I don't really wanna fill the game with duplicates or make all the skills 1 by 1, not just for preformance reasons but also for learning purposes!

    I hope I was clear with what I am asking here.

    Thanks in advance!!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Couldn't really describe what I wanted in the title so let me explain in detail.

    I have an object and it has around 100 frames each frame its a different character. Now what I wanna do is that let's say that when object.frame1 is active set instance value to x but I don't know how to do it whithout repeating the same code line 100 times.

    I know that I have to use for and arrays but they confuse me and I can't find a tutorial about them.

Sheep798's avatar

Sheep798

Member since 12 Jun, 2021

None one is following Sheep798 yet!

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies