Active Reload System

This forum is currently in read-only mode.
From the Asset Store
A sound pack containing 132 laser gun sound effects, including mono and stereo versions of audio files.
  • Hi guys,

    I am currently trying to develop an active time reload system for a game idea (think gears of war active reload). Currently I got it to work well by pressing a sprite button but I have hit a problem of some sort.

    Basically if I used sprites as buttons, the 'refresh' of the buttons are very quick and button like, enabling me to toggle it quite fast. But every time I try to stop it seems to lag behind, requiring some trials and errors and predicting where it will land with that half second lag before stopping.

    The other solution was using a text to do the button toggling and at first it seems to work well, but it seems the 'refresh' of the button is causing some issues. It takes about almost a second before I can toggle the state of the text button.

    Here's an image to illustrate the problem. I have also uploaded the cap in case anyone is interested.

    <img src="http://dl.dropbox.com/u/3061307/activereloadproblem.jpg" border="0">

    ActiveReload.cap

    Thanks alot for taking your time on this. Any help and advice is much appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have changed the 12.event to this:

    + System: Always (every tick)

    -> scroller: Add 300 * TimeDelta to 'scrollSpeed'

    -> scroller: Set X to lerp(scrollBox.Value('scrollStart') , scrollBox.Value('scrollEnd') , sin((scroller.Value('scrollSpeed')+1)/2 ) )

    Looks like its only working well with the sprite, the button still has the ~0,5s delay.

    Edit:

    Btw when you use the "else" statement the other conditions are doesnt matters, so lets say, if you want to check a variable, you should do it like this:

    if a > 0:

    • do this

    if a < 0:

    • do that

    else:

    • do something else

    So if a isnt higher than 0, and a isnt lower than 0, then it'll do what you "said" in your else loop, but only in that case.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)