KryptoPixel's Recent Forum Activity

  • Export Apk, remote preview

  • If I understood, he wants to change a variable value not in a linear way, he wants to do it using an ease.

  • You can achieve what you want using states and timers.

    Use an instance variable on your boss, called state.

    If state = fighting and BossHP > 500 -> Do all your actions and change the state of your boss instance variable to waiting, also start a timer, this timer is the time that your boss are going to stay idle...

    On Timer -> set your boss.state back to fighting

    So it will loop till BossHP are less or equal to 500 with some time between actions

  • create an instace variable (state) to store the enemy state

    On line of sight compare the angle from enemy to player angle(enemy.X,enemy.Y,player.X,player.Y) and based on this result, change the enemy.state to running_away_left ... running_away_right

    If enemy.state = running_away_right Set enemy.position to Self.X + 1

    You need also a condition to stop it and change the enemy.state

  • You can retrieve it using AJAX object from an online API.

    Like this:

    api.dictionaryapi.dev/api/v2/entries/en/table

  • Are the levels static?

    Create an invisible sprite and use it as helper.

    Before the tp, compare angle and if its coliding with this helper, if so, teleport the player through the wall.

  • The result of the random expression is a float number.

    random(a, b): Generate a random float between a and b, including a but not including b. Use floor(random(a,b)) to generate just the whole numbers 0, 1, 2, 3.

  • I think that you can achieve what you want using raycasting.

    See this: youtube.com/watch

    You will have a laser to the player`s angle. Before teleport, compare if the laser is bigger than the amount of space needed for the teleport, if have space enought, just do the regular teleport, if not, teleport it to where the laser ends.

  • You do not have permission to view this post

  • Really nice, I enjoyed playing it.

    As alextro said, the menu part is not very intuitive, I only understood after some seconds clicking.

    Loved the art and music. I would suggest to try other SFX effects and reduce their volume.

  • Its because your events are resulting in multiple TRUE

    You have to refine and segment better the comparisions

    Try this:

  • Actually it could works if you put 'Trigger once' before loop 'for' that act like 'On start of layout'.

    Indeed, just tested it here, I didn't know that, I thought that it would be true every tick.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
KryptoPixel's avatar

KryptoPixel

Member since 22 May, 2021

Twitter
KryptoPixel has 2 followers

Connect with KryptoPixel