strangeDays's Forum Posts

  • Go to the layout view, double click on the screen and create a new Text, call it "Text_Score" for example.

    Then go to the event sheet and do a right click, select add new global variable. Call it "Score" for example, select type Number and initial value is 0.

    Right click again, select add new event. In the appearing popup window, select System -> Every tick. The event appears in the event layout. Next to it, there's add action. Click on it, select Text_Score, then select set Text. In the appearing small popup window enter the following:

    "Your score is: " &Score

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I thought so too, but it works, yes.

  • Wow, this software is awesome. And so are you. Thanks a lot!

    [attachment=0:3nvpdd7d][/attachment:3nvpdd7d]

  • Hello guys,

    I've set up a little test where sheep collect material and bring it to the headquarters:

    [attachment=2:cofffyss][/attachment:cofffyss]

    The material mountains are all the same object that have different values set for the instance variable material_number. This variable determines which animation is used and it also gives its value to the sheep's instance variable collecting_material_number when the sheep is dropped onto the mountain. When the sheep reaches the HQ, +1 is added to the appropriate material value (which is stored in an array).

    Now the problem is that, when having reached the HQ, the sheep finds its path to the mountain in the middle, but not to the mountain which it first was dropped onto.

    [attachment=1:cofffyss][/attachment:cofffyss]

    I'm looking for an event like

    Find path to a mountain that has a certain value set at its instance variable, e.g. 2

    I would appreciate any kind of help. Thank you.

  • Just dropping by to say thank you, both of your suggestions worked.

  • Hello guys,

    I'm part of a team of students who would like to do a tower defense game as their project and we would really much appreciate any advice regarding our problem.

    Now, I've noticed that in isometric tower defense games, the little soldiers usually have 8 different animations for 8 different directions. So, when the soldier is walking from south to north, there's an walking-animation that shows him from behind; another one that shows him from the front when he's going from north to south and so on.

    In the attached example project I have set up 8 animations:

    [attachment=2:t6tdp5st][/attachment:t6tdp5st]

    Since I can not call every single animation directly with one single event (because the "Set animation to..."-event needs a string as input which I can not directly get from the "Enemy.Pathfinding.MovingAngle"-call (gives only numbers)) I have used an array to assign each animation an int-variable.

    [attachment=1:t6tdp5st][/attachment:t6tdp5st]

    And then there's that crazy mad action (with the red arrow next to it) that sets the correct animation depending on the moving angle. I partly stole that action from another thread and it works now, but our game is already really heavy and with 30 units each calling that action every tick I'm afraid that the game will go into cardiac arrest. So my question is:

    Is there a better way? One that is perhaps less hard on the processing power?

    Thank you very much for any advice. This forum has already helped me a lot.