KryptoPixel's Recent Forum Activity

  • If i'm remember well, ennemis move as Bullet in Vampire Survivors, so it's pretty easy, just use Bullet Behavior, and set the angle to angle of your Hero.

    Better, but they still overlap.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys, Im trying to recreate the vampire survivors enemies movement.. but Im not able to recreate it.

    Using move to.. lerp and so on.. it just overlap the enemies and the player. Even them having solid behavior and colision enabled.

    Tried using path finding but it get really buggy.. Does anyone have any clue?

    Thanks

  • > Really hard to tell from the little information.

    > Having lots of objects, especially if they run complex logic, for example collision checks, for each loops etc will be very costly to performance if not optimized thoroughly.

    > Are you sure the performance problem is not based on the sheer amount of bullets and events?

    >

    > As you say the problem is recent, does the project run better in a old version of c3?

    >

    > Secondly could you send a simple project file that has the problem so I can investigate?

    I am sure its not because of the amount of bullets simply because it worked fine before, even in very old projects. ill be working on a file to send. How can i try an older version of construct 3 btw

    Open: editor.construct.net/r281

    for example

  • Glad that you found a way, let me share a way that could help.

    First, how long it takes to go from sunny to fully dark? In my example, lets say 2 hours.

    So, at 5pm it will start to go darker till 7pm when it is fully dark. (From 0 to 100% opacity).

    I would do something like this:

    On 5pm set stage to -> sunset

    Is stage = sunset and sprite opacity is not equal to 100%:

    Every 1 second set sprite opacity to self.opacity + 0.83 (0.83 because we have 2 hours in 120 seconds, so 100/120).

    What will happen is: at 5pm it will start to change the opacity 0.83% every second till reach 100%. You can also do the same for sunrise, inverting the opacity. If you want less time or more time on the process, just calc 100/seconds you want.

  • Sorry, nevermind..

  • You dont need this global variable.

    Sprite1 on Destroyed:

    For 1 to int(random(1-5)) -> System create Sprite2 at random(x,x) / random (y,y)

  • while

    number=38 -> set value to number: int(random(41))

  • I tried to create a vampire survivors like, and could not manage to replicate the enemies movement. =T

  • Sorry, let me edit.

    Use 2 variables, last_attack, next_attack.

    While next_attack = last_attack:

    next_attack<-choose(1,2,3,4)

  • Upload your project to google drive.. mega.. dropbox.. and share the link here.

    Also, write all the steps to reach the problem and I will try it here.