rangerkazze's Recent Forum Activity

  • There is no logic to spawn that object, only set its position? Also int(random(1,4)) does not pick 4 only 1,2 or 3

    the obj_platform is spawn normally. obj_meteor is the sprite that i want to pin at obj_platform

  • Hi, I try to pin a sprite to a random spawn object. The random spawn object is spawn normally, but the sprite i want to pin at the object does not spawn. Can someone plase help me ? the global variable for Meteor i set 0

    Tagged:

  • Events 22 and 25 on your screenshot are still running on every tick when conditions are met. They are reading/writing to local storage 60 times per second, which should not happen!

    Here is the correct way to do this:

    https://www.dropbox.com/s/fame0mgsqcy2kmk/SaveScoreToLocalStorage.capx?dl=0

    Thank you for your great help. Now finally I can sleep in peace.

  • the screenshot for my 2nd post

  • You are reading and writing to Local Storage on every tick, this is very wrong.

    You should write to local storage once at the end of the level/game, if CurrentScore>HighScore.

    And read from Local Storage also just once - On Start of Layout, and only if HighScore=0. When HighScore already contains a value, you don't need to retrieve it from local storage.

    I'm sorry for the late reply and thank you for trying to help me but I still don't understand. I try to change it a bit like in the picture bellow. But in the end of the game (player alive = 0) if the current score (TotalDistance) is greater than High Score, the high score number that showed in the end of game keep increasing for 3-5 seconds (there is no event for this increased number and for how many seconds. The higher the score is, the wait time for this number to settle is increased). But in the end it will set the new high score. For the score (TotalDistance) I still using scoring system at my first post (but I delete system > Add obj_player.Playform.Speed * dt to RECORD). I use this video for the high score tutorial wwwyoutubecom/watch?v=kfqNyZRaodg

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, I need some help. In my game I have a high score system. But everytime I restart the layout (my player died), the current score is added to the high score. This is the event for scoring : (for the reset when my player died I just put Restart Layout and set TotalDistance to 0)

    Tagged:

  • int() expression means integer, it removes everything after decimal point.

    For example:

    int(3.14)=3

    int(5210/2000)=2

    thank you for the answer

  • Set bullet speed to 100+int(variable/2000)*50

    thank you, It works. If I can bother you more, can you explain it to me? How the script worked know when to added speed for every 2000 ? (0 skill at programming)

  • Hey I need a help to make increased speed of bullet everytime this certain of variable is reached. The logic is probably like this : every multiple of 2000 variable (ex : 2000,4000,6000), the bullet speed increased by 50 (it's start with 100 and when I reach 2000 the bullet's speed would be increased to 150. And when I reach 4000 the bullet's speed would be increased to 200 ). I'm sorry for my bad english. I hope someone would understand it and help me with it.

    Tagged:

rangerkazze's avatar

rangerkazze

Member since 16 Sep, 2019

None one is following rangerkazze yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies