Ok I am having a new problem

0 favourites
  • 3 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • If you were following my other post I am stuck on the function part of enemy code to attack.

    So far i have created this crappy frames animation for each enemy attack so that I could test how well the picking event was running for each enemy in a turnbase. I got all the action down that isnt the issue.

    What is puzzling me the most is that After the picking and the action i get it to call a function Let say Attack or acidneedle or do nothing. basically three separate action with three function to start animation. Apparently I cannot get the function after the event to keep the UID picked it like it completely forgets what function to operate on so instead of doing animation to the picked it does it all of the enemy.

    I tried using other sprite to store the UID number, I tried using the same event for the first time picking, I tried overlapping sprite as another condition. Nuthing is working It only run the function to all enemy instead of the picked out one from the first set of event. I am at lost Is there any thing i can try,

    If I need to i can post capx to show what i mean. unless if i am going the wrong way to implement this part.

  • Yes, you have to re-pick the sprite in the function. Set one of the function's parameters to the Sprite's UID, then in the function "Pick by UID" and use that parameter.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thx you Paradox i didnt know i had to repick em again I figured that when calling an function with a picking already would let the engine know keep that picking.

    yeah you were right All i did was copy n paste all my original picking code and it seem to work I now know how dumb this engine can be and ill be sure to include every picking event

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)