zikdot's Recent Forum Activity

  • I tried that and it didn't work. Luckily i accidentally figured it out haha. The brackets were in the wrong place

    Instead of putting.....

    RunTrack.X-(dt*200*(RunTrack.Speed+TrackSpeed))

    it was.....

    RunTrack.X-(dt*(200*RunTrack.Speed+TrackSpeed))

  • I figured it out. You were right it needed to be RunTrack.X-(dt*(200*RunTrack.Speed+TrackSpeed))

  • Wasn't uploading properly so i hope this helps

  • I tried that initially. it just makes the track move really really fast. I think because its being x(multiplied) as opposed to +(added) due to the 200* part of the coding

  • Hey I placed this in a previous post but didn't manage to get any replies. So sorry in advance for asking again......

    I have a run track which is a scrolling background. The coding for the movement of my track is: RunTrack.X-(dt*200*RunTrack.Speed)

    I want it to gradually increase in speed so i created a global variable called 'TrackSpeed', and every 2 seconds 5 is added to the variable.

    Where in the RunTrack.X-(dt*200*RunTrack.Speed) equation do i integrate the global variable?

  • I have a run track which is a scrolling background. The coding for the movement of my track is: RunTrack.X-(dt*200*RunTrack.Speed)

    I want it to gradually increase in speed so i created a global variable called 'TrackSpeed', and every 2 seconds 5 is added to the variable.

    Where in the RunTrack.X-(dt*200*RunTrack.Speed) equation do i integrate the global variable?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you I will have a go at it and get back to you.

    Thanks :D

  • I've created a game where 2 sets of enemies will be coming towards the player at random spawning times.

    I wanted there spawning time to increase over time to increase the difficulty of the game, so i added a Global Variable called 'SpawnTime'.

    The 'SpawnTime' will subtract from the enemy spawning rate. However i need to create a limit so that it doesnt subtract forever.

    I'll try and explain my even page below.....

    (1) every x seconds | random(5-SpawnTime, 8-SpawnTime) | Create Object | enemy1

    (2) every x seconds | random(1-SpawnTime, 3-SpawnTime) | Create Object | enemy2

    (3) every x seconds | 5 Seconds | Add 1 to SpawnTime

    So i basically need to stop the SpawnTime from constantly subtracting from the enemy spawn rate otherwise once the spawn rate reaches 0 then a loooooooads of enemies are just spawned all at once

  • Thanks so much!

  • How do i create the limitation?

  • My game has enemies that spawn ever 'random(5,8)seconds', but every 10 seconds I want the spawning rate to reduce to 'random(4,7)seconds' for example. How would I go about doing this?

  • Works a treat!

zikdot's avatar

zikdot

Member since 4 Mar, 2015

None one is following zikdot yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies