Its 2022 , i still on scoping problem

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi all,

    Im designing a simple action side scroller game, with enemy using state machine. I use alterable string state and change this string value when condition is met. My question is, i always has weird result since i know this state comparison method is too near to the "comparing two general values" trap.(Enemy01 State="Idle").Using ForEach when comparing the state yield better result. Can it be concluded that comparing general value is better done using loop?Im trying to grasp the concept here and hope it is not just a random luck.

    Thanks

  • Im pairing a collision sprite with animated sprite for enemies

    Upon creation i gave the enemy the fixed value of the collision sprite.

    The collision sprite has alterable string state and initialy start with "idle"

    My question now is, how can i check value for each of the collision sprite and the matching animated sprite to animate accordingly?

    Do 1. Collision sprite alterable value="Idle" is enought to scope string value or i need for each loop?
    2. How do i get the matching animated sprite with in 1 after that? Should i go for another loop?

    Iam confused.Pls help.Thanks

  • Sorry, im trying to get the concept. Which method for the one i mention above

    1. Collision sprite="Idle" Then Directly Get AnimatedSprited ID=Retrieve Fixed Value

    OR

    2. Run For Each Collision sprite, Collision sprite="Idle" Then Get AnimatedSprited ID=Retrieve Fixed Value

    CF consist of manual and autoscope really hit me hard in brain.hahaha.TQ

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!