OddConfection's Recent Forum Activity

  • Everade

    Yeah, I'm not saying give the peer full control, just let them do relatively trivial things like append an angle when they send the keystroke/command to shoot, to improve responsiveness for the peer.

    You can add in a check on the host side to make sure it's a valid angle, and if it's not then the Host can either ignore the shot completely or generate a new valid angle.

    Is your Host a non-player? Because if they are a player and you're worried about a peer cheating by sending an angle, what do you think the host player could get away with?

  • [quote:3rsaengk]To prevent that my goal is to directly display the shot (only display, not doing anything further since the host will detect actual hits later on), but it shall display the actual correct angle and distance the same as the host will calculate it.

    The peer still has to tell the host they have shot, correct? So, why not get them to calculate the angle and send that to the host at the same time? There's no need for the host to do all the calculation.

    That way the peer doesn't have to wait for a reply, they can show the shot straight away, and then they only have to wait for the result.

    The host can still broadcast for the other peers to fake the shot, but the delay for them isn't important since they aren't the ones who shot.

  • > enhance.fgl.com use this service to easily put ADs in your apk.

    >

    Looks good.

    What's the catch?

    I was curious about that too.

    If you let them manage the ads, they collect all add revenue and decide what portion to give to you.

    7.0 FEES, PAYMENT & EXPENSES

    Unless otherwise agreed to in writing by the parties, the Platform is provided to you free of charge.

    If you choose to manage services - such as ads - yourself, FGL will not take any revenue share from the developer or publisher Net.

    If you choose to use FGL's Fully Managed Ad System, EnhanceAdsâ„¢, all revenue from ads trafficked through will be collected by FGL and a portion of these revenues will be paid to you on a variable basis, as determined by us in our sole and absolute discretion.

    https://enhance.fgl.com/about/terms-of-service

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Fupicat

    You can compare the LayoutName value in an event with the System->Compare two values condition then set the music to play based on that.

    Or if you really want to cut down on events, in an existing event you might have like On start of layout, add the Audio->Play by name action with the name set to:

    LayoutName = "Layout 1" ? "L1 Music" : "L2 Music"

    Obviously change the names to whatever you're actually using.

    You can also expand that if you add more layouts:

    LayoutName = "Layout 1" ? "L1 Music" : LayoutName = "Layout 2" ? "L2 Music" : "L3 Music"

    Edit: Actually you can simplify things by naming your music the same as your layouts and just setting Audio->Play by name to LayoutName

  • IGDev

    Add another variable to as a placeholder for the income to add, then do:

    Set tempToAdd to Acurrent + Bincome > Cmax ? Cmax - Acurrent : Bincome

    Set Acurrent to Acurrent + tempToAdd

    Set Bincome to Bincome - tempToAdd

  • mariogamer

    I think you might be able to use the source atop Blend Mode effect, to cut off the blood splatter on background objects.

    https://www.scirra.com/manual/146/effects

  • shuwand

    [quote:2fvr1we3]How do I make highscore with localstorage ?

    Add the LocalStorage object

    Add global variables Score=0 and HighScore=0

    Initialise your high score:

    System: On start of layout

    -> LocalStorage: Get item "HighScore"

    LocalStorage: On item "HighScore" get

    -> System: Set HighScore to int(LocalStorage.ItemValue)

    In your level end event (where you'd show the high score and have a restart button), add a sub-event:

    System: Compare Score > HighScore

    -> System: Set HighScore = Score

    -> LocalStorage: Set item "HighScore" to HighScore

    [quote:2fvr1we3]why my highscore always NaN..

    Use in() to turn the values returned from local storage into numbers, i.e. int(LocalStorage.ItemValue)

  • Ethan

    No worries.

    The delay is only a quarter of a second, which isn't very much at all.

    You can shorten it if you want, it just needs to be long enough to do a double-click.

  • Ethan

    You could use an instance variable to count clicks and use a timer so that after 0.25 seconds it checks how many clicks, opens the appropriate menu, and resets the variable to 0

    Example .capx (r233)

  • jakeedge02

    Add the LocalStorage object

    Add global variables Score=0 and HighScore=0

    Initialise your high score:

    System: On start of layout

    -> LocalStorage: Get item "HighScore"

    LocalStorage: On item "HighScore" get

    -> System: Set HighScore to int(LocalStorage.ItemValue)

    In your level end event (where you'd show the high score and have a restart button), add a sub-event:

    System: Compare Score > HighScore

    -> System: Set HighScore = Score

    -> LocalStorage: Set item "HighScore" to HighScore

  • some of which appear to be missing from that tutorial by the way (the LocalStorage.ItemValue follows on from an 'On item exists' check - in which the ItemValue is not passed!)

    https://www.scirra.com/manual/188/local-storage

    You might want to read that manual entry again - You can use LocalStorage.ItemValue in On item exists.

    ItemValue

    The value for a key that has been read or written in any Local Storage trigger, such as On item get or On item exists. This can be either a string or a number. This returns 0 if used outside of a Local Storage trigger.

  • Something like: "Exclude eventsheet but don´t kill the object".?

    You can't exclude Event sheets, but you can disable multiple Events using Groups.

    Add a Group to your Event sheet and move the Events into the Group.

    When you want to stop the Events running, use the action System: Set group active, select the Group and set it's state to Deactivated.

OddConfection's avatar

OddConfection

Member since 26 Jun, 2012

None one is following OddConfection yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies