Underdog's Recent Forum Activity

  • Hi everyone,

    I'm looking for tips to implement an Experience System that will influence Stats.

    I found this useful tutorial from Tobye

    https://www.scirra.com/tutorials/720/st ... nce-system

    but I was not able to link it with what I wanted to do.

    I don't know if I have to use an Array or not. (Actually, I never used an array before)

    I would like to create a Table that allows me to define for Each level, the new stats and the XP requested (non-linear) to level up.

    When the player levels up, he gets his new stats updated (health, strength, mana... XP to Next Level)

    Thanks

  • Hey guys,

    I read a lot of threads about Path Spline Plugins but did you think about adding this kind of behaviour in CS2?

    Also, I was thinking about another way to achieve it but I don't know if it could be possible.

    The idea is to create a Texture that is a Mask that creates a path.

    Could it be possible to have sprites following this shape?

    Like that, the Sprites can have their own Bullet behaviour working individually but they follow smoothly the texture.If it is possible, it would be innovative :)

    At present, I managed to get this behaviour by adding a lot of sprites and change Angle of Motion when the Sprite collides with the sprites used for the "path". This is really tedious but it works.

    Any thoughts?

    Cheers.

  • Hi Joannak and thanks for your feedback.

    My PC is becoming old, here is the stats:

    Intel Dual Core, 2.33 GHz

    Ram 2 Go

    NVIDIA Geforce GTX 285

    My goal is to develop for mobile (tablet)

    Thanks

  • Hi everyone,

    I request your help in order to know if I am in the good direction or if you know a better way to achieve what I am presenting here.

    My goal is to have different targets that several sprites could dispatch around and focus to attack in the future.

    I did this capx in order to show you my way of thinking but even if it is working, I'm really not sure of the efficiency <img src="smileys/smiley5.gif" border="0" align="middle" />

    My FPS drops really badly with the bullet behavior. Each time a new "character" is created and moves, my FPS drops at 17 FPS on PC (chrome) :( and I have nothing.. That's scared me a lot for the future, so, this is why I request your help.

    FPS is back to 60 if there is no more sprites moving.

    Am I on the correct track?

    Is there a better way to achieve what I did?

    Thanks for any help.

    here is the capx

    dropbox.com/s/3xlliawmgkmsn53/AmIright.capx

  • I removed the Green Health bar from the Knight container.

    it works like that :)

    So, good news, I have a strong 30 FPS with 2 knights now. Thanks guys, the container idea was a good advice.

  • hey Emoaeden,

    do you know how to set position to an object that is part of a container?

    I have a health bar that is pinned to the Knight but I want to offset the bar at the top of the Knight.

    I tried with the image point (origin) but when the health depletes, it does not resize the bar from right to left but both sides :P

    I tried to set position every tick but it does not work???

    Do you have any idea?

    thanks again

  • Nice Emoaeden.

    I tried with my enemy to create a Container.

    That's great, it reduces the number of events.

    I will update my knights now and see the impact on it.

  • Hey Emoaeden,

    thanks for the quick response. I will check your link right away :)

  • I reach 20-30 FPS if I spawn only 1 Knight instead of 2 per tower.

    I was expecting more because I really don't have a lot of objects, no sounds, no fx...

    I checked the Template-TowerDefense.capx from CS2 and it runs at 20-30 FPS.

    I would love to know if it is me or if you have 20-30 FPS as well?

    Thanks for your help

  • Thanks Emoaeden and Jayderyu for trying to help me.

    jayderyu:

    I checked the profiler and I spawn the correct amount of objects.

    emoaeden:

    No. What do you mean by containers in Construct 2?

  • ok. I think I found the problem but I have no clue how to fix it.

    When my knights and enemies are on screen, I reach a pick of 40000 collision checks :(

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi everyone and happy new year.

    I'm working on a Tower Defense that has some inspiration from Kingdom Rush and I meet a big performance issue with Bullet Behavior at the start of my project :(

    Example:

    After creating a Tower, I can spawn 2 knights who reach a defined position. While moving, my FPS drop from 50 to 30 FPS until they reach position. Once they arrived, my FPS is going back to 50.

    I can create 5 towers, and each time, I have this drop of performance and back to 50 when they do not move.

    I also noticed that my enemy (only one) is taking 20 FPS alone. I was surprised by it. I spawn this enemy 10 times each 3 sec in a random position and they follow the path where I put a few sprites to change the angle of motion.

    I was expecting that it would have been much efficient that the Pathfinding behavior which has the issue of having all the sprites ending on a line.

    By doing the test with 5 Towers (10 knights) and 10 enemies, my FPS drops a lot.

    I tried to add a short delay in order to check every X sec instead of every tick, but it remains slow.

    I really don't understand how I can fix this performance issue, especially that I'm testing on PC :(

    I also tested it on another PC and it is the same.

    I read a lot of threads about performance issue but I did not find any idea for me :(

    I also set the project and layout at 1024,768

    My sprites are 32x32 or 64x64 and the biggest for the castle is 256x256.

    I only have one sprite (knight) that has a weird format 64x101.

    I hope someone may have an idea because I really wanted to do a TD game with Construct 2

    Cheers everyone

Underdog's avatar

Underdog

Member since 1 Feb, 2013

None one is following Underdog yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies