vee41's Forum Posts

  • You can find all C2 releases here: scirra.com/construct2/releases

    115 and 116 were beta releases.

  • Here is an example how to create a snappy grid. This is just one way to do it:

    Snappy grid demo

  • Only 1st is meant as condition, two others would be actions. Forum loses the blanks infront so it appears bit messy, sorry :)

  • 1) In what context would you need this? I haven't really missed them myself so asking where you'd need to use them :)

    2) Something like this:

    player.distanceTravelled = y

    ..   create object enemy at (player.x - x, player.y)

    ..   player.distanceTralled = 0

    Depending on how your player moves you'll need to add into distanceTravelled every tick.

  • Ok, i get it - thank you very very very much!!!

    The community and the people here are so great!!!

    But now i have another problem :(

    The distance is (in our case) 128px - but how do i realize it when i have diffent towers with different ranges?

    So tower1 have 128px, tower2 196px, tower3 256px,...

    And when i upgrade an tower his range also increases...

    Create another family variable, range, in your tower family so all your tower types will have it. Now you can define the range for every tower type individually. You can refer to it via familyName.range in the events (range check in this case)

  • silkc2

    You can change the size and shape of collision polygon, you just cannot do it by inserting values yet. You'll have to drag the vertices around manually.

  • And whats with the instance variables? Have i also change it to family-variables?

    Yup, otherwise you cannot access them when referencing an object through family.

  • I recall someone who'm bought the game through steam getting their sprites after he emailed the support. So try that, they are really friendly and quick to help people :)

  • Thanks - works fine!

    But is it possible, that it also works with "familys", so i don't have to create a lot of events for each kind of tower and enemy?

    Sure, just replace the 'tower01' or 'enemy' parts with corresponding family and it should work just fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Even if there is two or more sprites on top of each other, you are clicking on all of them. Thus, 'on object clicked' is called for each of them :)

  • I'd add bullet behavior for the enemies and change 'angle of motion' to achieve that. Also replace 'move forwards' with bullets speed. Just be sure to turn off bullet behaviors 'set to angle' in properties of the enemy objects :)

  • Problem seems to be caused by the fact that all your zombies are initially walking to the right(speed 30 is towards right) and facing left. You could either rotate them all to face right initially, or change their initial angle of motion to left.

    Nothing wrong with moonwalking zombies though! :)

  • You are always targeting the closest enemy with 'pick nearest to tower' event.

    If you wish to change it to something else you could do it like this:

    Tower defense demo

    Not the most elegant way, but you'll get the idea :)

  • Thanks vee. I think I was under the assumption that Arrays were stored and saved in separate files for later use. It appears they are not.

    I eventually want my program to store and retrieve info from an outside database. Is that possible? I imagine with Facebook integration, they are accessing server data at least a little bit.

    If you can't within Construct 2, is it possible to add Python integration into your program?

    I guess I'm a little confused about how to save and access data from other files.

    Accessing database would be done via AJAX calls / PHP script. I recall seeing some examples of that available so be sure to look into manual/tutorials/forum search on those topics! :)

    If you are looking to access some data, I'd also recommend looking into XML / JSON which are both supported.

  • 1) You can just create array object in editor (it will be usable automatically), or you can spawn new instance of the array object via 'create object' if necessary. Spawning new instances of arrays is rarely needed though.

    2) This tutorial covers the basics for using arrays in C2

    Hope this helps :)