Flirer's Recent Forum Activity

  • Sir, you saved my day!

    Its looks like exacly what i need.

    My thanks!

    After i test it - absolutly awesome. Exacly what i need. Thanks again!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I understand your solution. But if i have alot of towers its become problem. Also i have similar trigger to build tower, and there can be more mechanic wich will be hard to maintain and change.

    Ok, i cant post URL to a pic >.< but ive got your idea - i need different solution.

  • Ok, lets take another aproach.

    I want to create a behavior that will spawn object, and type of object should be selected by string, rather then object picker.

    I looked at sprit plugin, and found a spawn function that do 'Spawn another object' action. It leads to function in preview.js. It pass object type within a javascript object, so i need first to get this object type.

    My guess is to find array that contain all object types and search required type by name (string) and then use default function to spawn new object.

    Shouldnt be too hard, but i cant figure out where is object type array, so i could access them in plugin script. Also - object type name is uniqe per type? Becuase if not, i guess whole idea is dead.

    May be some one know where is this array? Tnx for answers btw!

  • Still each of your tower has to be manualy binded to event, i was looking for solution to make one event-action for all towers in general.

  • Hello, im trying to make tower defense game.

    Right now when my tower shoot - it shoot projectile that i manualy put into event. Problem is - if i want to have 50 or even more tower i need to create alot of same type events, so every tower type spawn its own projectile.

    I want to make instance var in towers, wich will hold projectile type, and use this var in event. Is there any way to do that?

Flirer's avatar

Flirer

Member since 25 Nov, 2013

None one is following Flirer yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies