vee41's Recent Forum Activity

  • Here is an example that involves handling collisions between two instances of same object:

    Evil sprites demo

  • Add 'Wolf : pick nearest to player x,y' condition below your 'Every tick' condition.

  • I'd do it something like this:

    <img src="https://dl.dropboxusercontent.com/u/19921470/spawnProblem.PNG" border="0" />

    Spawned is a boolean instance variable that starts as false.

  • vee41 but if you're using containers there would be no need for the family. just check the enemy and tell enemy_sprite what animation to play.

    Edit: There would be no need for the family for the animation stuff, you would still need it for other stuff like attacking them.

    EncryptedCow But as he is doing it with families, there is need to use a family here. Player and enemy sprites are separate objects in a family, but would need to use the same animation triggers.

  • Or put the enemy_sprite in a container of enemy. That way it will always know which enemy_sprite to reference. I could be wrong though, I don't use containers too often.

    They would not be picked if you pick the family the object is in.

  • That would be a picking problem. :)

    What you'll need to do is pick the "Character_Sprite" that is related to the "Character". Few of the approaches you could take:

    • Saving UID of the "Character_Sprite" to instance variable of "Character" and using "Pick by UID" action.
    • Picking the "Character_Sprite" nearest to "Character". Might be risky approach, depending on how your game works.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sounds to me that you should be looking into containers and not families.

  • To summarize the intended functionality with an example event:

    If Character family is jumping, set picked object's animation sprite (which I have put in an Animation family) to "Jump". Making this event will currently just make EVERY character sprite play the "Jump" animation, rather than find just the one that belongs to the acting character.

    My instincts would say this should work:

    On Character jumping

    .. Character: set animation to "Jump"

    If all characters are set to Jump animation I think there is a problem with picking.

  • It's a feature I've been missing too in many projects. Would be great to have an efficient solution for recoloring sprites, as it's something I find myself needing on many occasions.

  • Ashley Thank you can you tell me where i can find the new examples because the links are not popping up for me.I swear i been looking quite a bit.

    Just open construct 2 and start a new project, list of templates and examples should pop up.

  • You are using it wrong, you are just setting your variable to 0.

    Here is a tutorial on how to use web storage: scirra.com/tutorials/266/webstorage-how-to-save-ingame-information

    Aand of course web storage manual entry for all the stuff you can do with it: scirra.com/manual/120/webstorage

  • Post your project or screenshot of the events, and go easy on the caps lock :)

vee41's avatar

vee41

Member since 12 Apr, 2012

None one is following vee41 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies