LittleStain's Forum Posts

  • - the family members don't all have the same number of frames, some have more frames some have less. So what happens for example if my highest number of frames is 8, 1 to 7 have already been picked, but the next family member randomly picked to be created only has 5 frames?

    This makes it impossible..

    You can't set an animation to a frame that doesn't exist..

    If you could explain what you would want to happen in the case this happens?

    Also, what do you mean by "after all combinations of family members and frames have been met"

    Do you just want to create all family members and all frames, or just one of each family-member?

  • What's the problem with using tags?

    You'd just need one tag "effect" and one tag "music" right?

  • Construct2 is actually pretty good at scaling, so I never had any issues, but maybe I've never had that big of a difference between the original image and the display of the image as you have..

    How big are the images you use and how big are they displayed on your mobile phone?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I still don't really get why pick by comparison didn't work, but anyway, it's done. Thank you.

    Your comparison:

    "JustSpawned" = 0

    Is comparing if the text "JustSpawned" is the same as the number 0

    My comparison

    MonstersNoSigns.JustSpawned = 0

    Is comparing if the instance variable JustSpawned of the object (in this case family) MonstersNoSigns is the same as the number 0

    As a text can never be the same as a number (and everyone can see "JustSpawned" isn't the same as 0), your event can never be true..

    The instance variable JustSpawned however is a number, so that number could be 0..

  • LittleStain

    I think you are right, Thank you...

    Wow, cool!

    You actually tried it..

  • I guess you'd want:

    Pick MonstersNoSigns where MonstersNoSigns.JustSpawned = 0

    Or

    MonstersNoSigns compare variable Justspawned = 0

    These are basically the same..

  • What do you mean by "project"?

    Construct is javascript/html5 based itself..

  • yeah this is what im working with

    anyway i can implement something like that easily?

    I don't see why not..

  • Yes, it is a instance variable of monsters. But if that comparison is never true then how come the other parts of the event work as intended?

    First thing I tried is "compare instance variable" but that doesn't work, it's very buggy...

    LE: And I just tried changing the numbers from 0 to 1 and 2, if I do that nothing happens anymore at all... so what gives? I'm very confused...

    As stated, the string "Justspawned" can never be the same as 0

    You are trying to see if a word is the same as a number, but you could also be trying to compare if 54 is the same as 100, which will never be true..

    What you want to do is compare if the instance variable on the object is equal to 0

    Why the rest of the actions work?

    Well event 7 is true every time, because "justspawned" is never the same as 0, so it's actions are executed..

  • I'm not really familiar with the game, but do you mean something like this?

    Like this?

  • I'm not sure what the problem is..

    Let's say you are using animationframes..

    If the animationframe of the sprite in the left corner is the same as the animationframe of the sprite the ball collides with everything is good, else the ball dies..

    After that you set the animationframe of the sprite in the corner to choose(0,1,2)

  • Seems like you are almost there..

    You could now add a "is not within angle" condition..

    then add an else event and set the exact angle..

  • As stated before, what you'd need is an event "if within a certain distance of the destinationnode rotate towards the position of detinationnode+1"

  • When shooting left you'd need 179, 180 and 181 degrees for the bullets?

  • Seems like you need "for each"