vee41's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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 :)

  • Use the picking functions. Under system menu you'll find 'pick random instance' which would pick a single, random bomb. Or you could do it in more ordered fashion by using IID's and UID's.

  • Someone did create google maps plugin, so I'd imagine it is possible to do similar plugins for other APIs as well. :)

  • Oh right, OK thanks I didn't realize that it would run every tick unless I told it to run every tick, but it makes sense otherwise you'd only be able to push left once to go left and never go left again.

    So anything told to run at the start of the layout will just run once?

    And what happens if you need a for loop that terminates when a condition is met mid game?

    You'll just need to create proper triggers that state when the loop should be enabled and when disabled. You could for example do it like this:

    global variable loopEnabled = 1

    loopEnabled = 1

    for 0 .. n

    do stuff

    Now, if you change 1 to anything else the loop will not run anymore.

vee41's avatar

vee41

Member since 12 Apr, 2012

None one is following vee41 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies