shadowlord's Forum Posts

  • How would I go about creating an object that will dodge the bullets i shoot, or dodge any other object for that matter.I tried, but i can't think of anything simple.

    The reason I'm asking is because i have a plane shooting game , and i want the boss battle to be more entertaining, by making the boss plane to dodge the bullets you shoot as much as it can.

  • I think he means something like:

    On button clicked:

    • Object1 spawn Object3
    • Object1 set position to Object2.X, Object2.Y
    • Object2 set position to Object3.X, Object3.Y
    • Destroy Object3

    Object2 and Object1 switch places !

  • How about: random(10) - 5. Would that work?

  • Why don't you just stop saving space and split the event into three subevents?

    First event:

    set global1 to: Attack.Value('BaseDamage')*Attack.Value('lightning')*Defender.Value('Lightning')

    set global2 to: Attack.Value('BaseDamage')*Attack.Value('Fire')*Defender.Value('Fire')

    set global3 to: Attack.Value('BaseDamage')*Attack.Value('Earth')*Defender.Value('Earth')

    set global4 to: Attack.Value('BaseDamage')*Attack.Value('Water')*Defender.Value('Water')

    Second event:

    if any of the global variables 1 to 4 are "0" set them to "1"

    and finally:

    set global('Attack') to : global1*global2*global3*global4*global('AttackStrength')*global('ExtraDamage')

    I know that's a lot of global variables and events but I don't think there's another simple and easily understandable way to do it.

    Hope this helps.

  • Ah i see. Cool, thanks !

  • I'm sorry, but what is "ascii" ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am wondering if there is a way to use an objects name as a family event somehow,like for example:

    Blue: Object name is "Player"

    -Blue: "Destroy"

    and if so. how.

    Thanks in advance.

  • This is a small example of how, when picking a number, to prefer the smaller values. You can change the degree of gradation by dragging the slider. If you have any questions on how this works feel free to ask.

    Download link : hostmyfilez.com/99717v6ab3av/gradiated_randomisation_system.cap

    Hope this helps.

  • Hello all,

       after 1 year experience and 2 weeks work on Construct i finally managed to make a tower defense game engine.With it I created my first big project on Construct. It might not seem like much now but Im going to make it a lot better in the future.

    Here it is:

    dl.dropbox.com/u/52670878/Tower%20Defence.exe

    Cap:

    dl.dropbox.com/u/52670878/Tower%20Defence%202%20.cap

    Please tell me if you have any bugs or problems.

    Hope you like it.