DexRage's Recent Forum Activity

  • Hi everyone.

    I've been working on a top-down tank game that makes use of the 8-Direction behaviour for player movement.

    Additionally, I'm using animations to precisely determine the direction the tank would be facing when the player hit's the arrow keys.

    Following is the screenshot of the events that control this.

    The issue here is that the tank sprite turns instantly towards the corresponding selected direction. Instead of this, I'm looking to incorporate a system where I would like the sprite to rotate smoothly in 40-degree intervals towards the direction the arrow key is being pressed. For example, if the tank is facing up, and the player presses the down arrow key, I want the tank to rotate smoothly in 40-degree intervals until it faces down and then start moving. Hope someone would be able to help.

  • Just went through it, you are right. It works perfectly now.

    Haven't been able to figure out why I deactivated the controls group though. thanks for your support :)

  • Great, thanks for the update. greatly appreciate it. will make sure to look into the point that you mentioned.

  • Surething, Do you mind if I share it with you via email?

  • Hi, hope this wasn't posted before.

    like most mobile games, I have set up my project in such a way where, once the player completes the level, they are taken to a separate game over screen and shown their star rating. If the player taps on the restart button present within this screen, they get the opportunity to replay the level. as such, once the player is taken back, the controls I have set up for the player object are completely disabled. it's only after I press the restart button, (which is present within the level), that I'm able to get back control of the player object.

    following are screenshots of some of the events that I developed.

    Can anyone help me figure out this issue? happy to provide more details if need be. Thanks in advance

  • KryptoPixel, It works flawlessly! thanks for the help. Greatly appreciate it. :)

    Apologies for not being able to respond to you sooner.

  • Hi,

    I'm trying to incorporate a 3-star rating system like what we have with games like Angry Birds. For example, in my game, if the player manages to complete a level within 5 seconds, they will get a 3-star rating. if they complete it within 10 seconds, they will get a 2-star rating, if they complete it within 15 seconds, they will get a 1-star rating and finally, if they take more than 15 seconds to complete, they get no stars.

    As such, with my limited knowledge, I tried developing a simple system, but it doesn't seem to work as intended. Following is a screenshot of this.

    The main issue with this system is that, if I complete the level within 5 seconds I get a 2-star rating, if I complete the level within 10 seconds I get a 3-star rating, if I complete the level within 15 seconds I once again get a 3-star rating and finally, if I take more than 15 seconds to complete the level, I again get a 3-star rating. not too sure what's going wrong here.

    Am very close to completing my first game in construct. Hope someone would be able to help me with this. Thanks in advance.

  • Works like a charm!! :D

    thanks a lot.

    you are a lifesaver :)

    I'm just trying to wrap my brain around how exactly the logic behind this is working. The way it works feels like magic to me!

  • Just tried it out, It doesn't seem to work :(

    Not too sure what I'm doing wrong. Following is a screenshot of my events. Please note that I have set up events in such a way where, when the player object collides with a particular object/ sprite, it loads to the next level. hope you would be able to guide me on this.

  • Sami424, sorry to bother you again. I'm facing another issue. As such, I would like to set up the game in such a way where, once the player completes a level, I would like the timer to stop to that point and then display this time on a menu. Any thoughts on how I can do this? you mentioned earlier that this can be achieved with the help of saving the minutes&sec variable to an array. Apologies, as someone who is just getting started in game development, I have no clue how to do this. hope you would be able to help me with this. Thanks for your time.

  • I think I fixed it sort of. Rather than keeping MSPassed ≥ 99, I set it to 60. if you believe there is a better way I can incorporate this, I would love to hear it from you. Thanks once again for your support.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the response, greatly appreciate it :)

    Just had the opportunity to try it out. I included the milliseconds part as you suggested. Though most of it seems to be working fine, I find the timing to be a little slow. Can you guide me on how I can fix this? Following is a screenshot of my events for your reference.

DexRage's avatar

DexRage

Member since 16 Aug, 2021

None one is following DexRage yet!

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies