LittleStain's Forum Posts

  • What tutorials have you tried and what part of them didn't you understand?

    This one even has a capx you can download..

    Also, why a second topic with the same question?

  • How much difference would it make?

    Construct already does a great job optimizing during export, so unless your project is set up in a very strange way, it couldn't be that much, right?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i have some problem for ad show intersitial . i have set the timer for give time to ad intersitial is showing ..

    for the ad banner is normal...

    "hero monkey bananas" at plays store

    if want to check please help me.. because the problem make me not move on

    Why would you put an unfinished game in the playstore?

    And if you need help, wouldn't providing a capx and/or events be much more usefull than a "finished" product?

  • Shouldn't be hard to get the y-position of the last created pipe..

    Would be easier to explain if we knew your events to create them..

    If both pipes are created in the same event, storing the y-position of the first in a local variable and using that to determine the position of the second should work..

    That would use a system set variable to family.y after creating, or set the variable to a random number and creating both pipes based on it..

  • LittleStain thanks! I'm constantly learning a lot from you and it always amazes me how you can find the best solutions to problems. You have my deepest respect!

    Thanks..

    Nice to hear..

    Especiallly today (Birthday)

  • That's why you should tweak it..

    In the example R0J0hound posted changing RES to a higher number will reduce the amount of sprites created..

    I'd disable collisions for sprite2 in it's properties if you are never going to use them..

    You could fade out faster so the tail is shorter..

    All these things can reduce the impact it has on performance..

  • First thing I noticed and maybe all that is needed..

    When you call the function you have to re-pick the right instance(s)

    Using the UID of the object as a parameter should work for this..

  • You can do something like this:

    Sprite1.X<Sprite2.BBoxLeft+Sprite1.Width/2--->Sprite1 Set X to Sprite2.BBoxLeft+Sprite1.Width/2

    Just add 3 more conditions for right, top, bottom with appropriate values.

    One event with two actions will do:

    every tick

    sprite1 set x = clamp(sprite1.x,sprite2.bboxleft+0.5*sprite1.width, sprite2.bboxright-0.5*sprite1.width)

    sprite1 set y = clamp(sprite1.y,sprite2.bboxtop+0.5*sprite1.height, sprite2.bboxbotto-0.5*sprite1.height)

  • On collision is a triggered event and as such only triggers once while true..

    That's why I asked if "is overlapping" would work in your case?

  • That was actually one of my first games to try:

    https://dl.dropboxusercontent.com/u/485 ... index.html

    Wonder if I still have the capx..

  • Sorry that I still don't understand, but if you couldn't set animation at t=0, the sprites in this example would be destroyed, right?

    t=0 example

    As far as I know only the "on created" event, which is called before anything can affect the sprite (which is why it's called on created), can affect a sprite earlier..

  • I'm guessing

    When tower_1.isSelect = 1

    is a system compare action and as explained in the manual system compare doesn't pick any objects

    If you change that to pick tower by comparison, it should probably work, if there aren't any conflicting events..

  • you could use a system compare event for this

    enemy.count = 0 would mean there are no instances of the enemy object on the layout..

  • what events and conditions are you using for this..?

    Would a laser is overlapping work?

  • In what way are you picking the right tower in the event?