chrisyamao's Forum Posts

  • Is there a way to do it?

  • The parent Sines vertically but the pins do not follow.

    How can i make the pins follow the movement identically?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • int(random(Sprite.AnimationFrameCount+1))

    i'll try it out, thanks!

  • Hey guys, i have a sprite with (eg) 4 frames.

    i want that sprite to be in a random frame whenever it is spawned. Therefore i could use random(0,3)

    The thing is, i will include more frames eventually, so, if in the end of my project the sprite has 10 frames, i should update the event to "random(0,9)"

    isn't there a way to program it to "random(all frames)" or something similar so i don't have to update the precise range when i update the amount of frames?

  • You can use z-ordering or just simply make an action right after the spawning and move it to buttom of the layer like the example below.

    On event ---> spawn object1

    ---> move object1 to bottom

    thank you !

  • Hi guys, i'm having a problem with the following:

    I have an object spawning enemies. the enemies get bigger as they get "closer to the screen".

    But every time a new one spawns, it's on top of the older spawns.

    How can i do so that new spawns are at the bottom of the layer?

    Thanks!

  • Hey chrisyamao!

    Not sure if that's what you're looking. Just made a .capx of the effect I described above. There are three sprites, first is changing Hue, second Saturation and the third Luminosity.

    https://www.dropbox.com/s/247chex5a35b9 ... .capx?dl=0

    Cheers!

    brunopalermo, that capx looks amazing! looks just like what i want. i'll study the event sheet! Thanks!

  • So far, i know how to change the color of a sprite, for example using the Hue or Adjust HSL effects.

    However, those actions make a hard transition.

    I've been recommended plugins that are for C2 and still not available for 3.

    Using C3, does anybody know how i can make a smooth transition of color/hue?

  • You should post this on the Construct 3 board, then... Good luck!

    Sorry! thanks for the correction

  • So far, i know how to change the color of a sprite, for example using the Hue or Adjust HSL effects.

    However, those actions make a hard transition.

    I've been recommended plugins that are for C2 and still not available for 3.

    Using C3, does anybody know how i can make a smooth transition of color/hue?

  • chrisyamao

    Maybe something like this?

    https://www.dropbox.com/s/jbdmeobuycms5te/ShootingStars.capx?dl=0

    This is precisely what i needed. Thanks so much tarek!

  • I want to help you, but I do not know exactly what you want. Can you tell me clearly?

    Thanks! i'm sorry for not being clear.

    I'll try to be as clear as i can;

    In my layout i have placed 5 instances of a bullet (a star shape).

    they are all angled differently and fade out after 1 second.

    i want every enemy to spawn this chunk of stars on destroyed.

    Is there a way i can GROUP these 5 instances on my layout, and turn them into an object? (name eg: chunkOfStars)

    So i can make:

    Enemy - on destroyed : Enemy - Spawn object - chunkOfStars

    or there's no other way than making an action for each individual star spawned and the specific angle?

  • Hi guys!

    In my game i need to spawn 5 stars, from the center outwards, whenever an enemy is killed, like in a "poof!" cloud

    I created the sprite STAR with bullet and fade behaviours.

    As a test, I put 5 in the layout, i rotated them by hand in the layout and place them close to each other, to preview it and see how they bullet outwards and fade. It worked fine!

    But as far as i know, when event "enemy - on destroyed" occurs, i should set the star spawn 5 times, each with its own angle and position, like this:

    System - create object - Star

    Star - set angle

    Star- set position

    System - create object - Star

    Star - set angle

    Star- set position

    System - create object - Star

    Star - set angle

    Star- set position

    System - create object - Star

    Star - set angle

    Star- set position

    System - create object - Star

    Star - set angle

    Star- set position

    Isn't there a way i can take the 5 i put in the layout as a test, group them and turn them into an object "star cluster", remembering how many instances there are/position/angle/scale from each other?

    And then just make an event be:

    Enemy - on destroyed - System - create object - Star cluster

  • If the Bird on collision event was separate from after the Bullet collision event then most likely the issue was that sometimes the bird would be destroyed by the collision before the other could be triggered and very occasionally not.

    The key is to put them all in one event...

    Bird on collision with bullet

    -bullet destroy

    -System add 1 to score

    -bird destroy

    thanks for your help chris!

  • chrisyamao

    rexrainbow has a link to all of his plugins in his sig.

    http://c2rexplugins.weebly.com/rex_tween2effect.html

    Thank you!

    I don't see any download button however. i need this for C3, do you happen to know if it's compatible?