Lanhoj's Recent Forum Activity

  • Thanks for that. I had a different event that changed the value of Game_Started to 0. I tried doing a "stop loop" and that didn't seem to do the trick. Then I changed the value of Game_Started to 0 within the same even as you suggested but as the last item on the list and ended up having the same issue. So, I then made the value change be the first step of that event and it seems to have cleared it up.

    Just so i understand, why would it matter where the value of Game_Started is changed if it's within the same event?

    Thanks again!

  • I can't seem to figure out if I'm doing something wrong with the random function or if this is one of those instances where I should be using a timer instead of wait.

    Essentially, what happens is that no matter what values i put in my range - it always just uses the first one. So if it's (8,25) it saves 8. If I put (15,25) it puts 15. If I do (25,250) it waits 25 seconds.

    I seem to have the same problem if I try and do it with a global variable so I can't help but think it's an issue with random or using the wait function.

  • This is kind of a two-fer.

    As an assignment, I've created a game that uses the random(x,y) function to have cars and other objects show up on screen. We've been issued a challenge for extra credit to instead use C++ to implement Lehmer's Random Number Generator. Two-fer because I don't know how to go about using C++ coding in a game created in Construct 2...and because I really don't know how to go about using the Lehmer RNG. Any tips or suggestions would be greatly appreciated.

  • Any chance someone still has the link to this capx? Unfortunately I can't do PMs yet.

  • Ahh -- just realized, I'm now asking questions that may not pertain specifically to the speed boost anymore. Perhaps I should create a new thread?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for such a prompt response. I'll have to try this out when I get home. Any ideas on why the sprite faces to the right?

  • Unfortunately I don't have enough reputation posts to post my capx file but I'm working on a project (first time making a game) that is an "endless running" style game that avoids oncoming cars and obstacles (Birds eye view). I tried to implement the option to have the main character have a boost in speed when the user presses the spacebar.

    When spacebar is pressed, i increase the animation speed, increase 8direction speed/acc/dec, wait 5 seconds, and then set them all back to their previous values. I'm thinking there's a better way to do this using some kind of timer, but this is what I've got.

    The problem, is that when the user presses space bar, my character immediately turns to the right (east), and then when the 5 seconds is up and the speed/acc/dec goes back to original values, he sort of does a lunge.

    I'm hoping this is an obvious problem that I've overlooked. Thanks again!

  • I'm brand spankin' new to the world of game design/development. I've gone through the tutorial with Construct 2 and read a number of threads but I've got questions questions questions and will be pickin' people's brains.

Lanhoj's avatar

Lanhoj

Member since 11 Apr, 2017

None one is following Lanhoj yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies