Draimond's Recent Forum Activity

  • An interesting question!

    Let me expand upon this with a few questions of my own:

    • What are the limitations of the multiplayer features in C2?
    • What platform do you and this to run on? Mobile, PC's ?
    • If it's on mobile, where does bandwidth become a limitation
    • What type of RPG are we talking about? 2D characters or more of a D&D text type of gameplay
  • per tick, gotcha, ty. It's now officially known to me also.

    I'm moved my pauses (using wait for signal within it's own function) and refined my code.

    I got to many globals already man

  • Problem Description

    When calling a function with a parameter set, using a wait inside the function clears it's parameters.

    Is this normal?

    Attach a Capx

    http://aff-gamer.com/waitParam.capx

    Description of Capx

    This demonstrates that a parameter zeros after a system wait.

    Steps to Reproduce Bug

    • new project with 1 global variable, 1 button, 2 text boxes and functions object
    • global variable should equal any number other than 0
    • on start set text.text to global variable
    • on button clicked call function with param(0) set to global variable
    • on function {
    • - set text2.text to function.param(0)
    • - wait 1.0 seconds
    • - append text2.text with function.param(0)

    Observed Result

    After a system wait, function param always returns 0.

    Expected Result

    I didn't expect to loose my parameter after a system wait.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (unsure)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    227 64bit

    personal licence

  • It may help others to know my method of getting scores submitted. (even though it only works when I'm signed in with the same account I used to publish)

    By the way, from my very limited experience, I get the sense that when you make a change in the Dev Console, wait 24 to 48 hours before you see the effects.

    On start & is Canvas+ | Request Sign in

    On Sign in Success | Request Leaderboard Score

    On Sign in Fail | (assume they're offline)

    On Request Score Success | (compare local score with Leaderboard Score) This won't work unless they already have a Score on the leaderboard

    If Local Score > Leaderboard Score | Submit Score

    Else | Set Local Score to Leaderboard Score

    On Request Score Fail | Submit Score - It won't return a 0, it'll just fail, so new users will get this. Post a score and move on (hopefully)

    On Submit Success | (refresh data etc)

    On Submit Score Fail | (troll forums)

  • I managed to submit a score earlier today from the same google account I published the app from. I can't get it to work from any other accounts.

    I turned the tamper protection option off. There's a few posts out there pointing the finger at this option causing players to not be able to interact with leaderboards.

    I'm still at a loss as to whats causing the issue. I'm basically going around in circles rewriting my code waiting for something to work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For the record I have 6 Achievements setup and working for myself and others. [UPDATE - turns out the Achieves aren't getting sent either]

    The leaderboard on the other hand has taken me from v1.2.5 up to v1.3.7 with no luck as of yet.

    Using the latest version of the Cocoon.io plugins in Construct 2. CocoonAds, CocoonCanvasplus, CocoonGooglePlayGames.

    Cocoon.io Project plugins includes: cocoon-plugin-social-android-googleplaygames WITH Name: "APP_ID" Value: (12 digit int from the Games Services page, triple checked)

    In the Dev Console I can see that my app is linked with the leaderboard.

    Leaderboard ID is stored as a Variable.

    When my app runs "CocoonGooglePlayGames | Open Leaderboards" It opens up the normal pink google screen with correct leaderboard name and icon from the google developer console games service page. However it does not show any times on the leaderboard. It just has the.. "be the first to submit a score etc.."

    So it's pulling the right leaderboard (ID is correct) but it refuses to submit scores to it.

    The player has a bunch of scores set in an array, which I've tested and checked a million times.

    I store the top score in a Variable and use "CocoonGooglePlayGames | Request player score"

    "On request score success"

    if ArrayScores.At(0) < CocoonGooglePlayGames.PlayerScore set ArrayScores to CocoonGooglePlayGames.PlayerScore

    else Submit score "TopScore" to specified leaderboard "LeaderboardID"

    Parameters for GooglePlayGames: Request player score.

    In the tip above where you enter your leaderboard, it say's e.g. "My Game Name".

    Does this mean you enter your com.dev.gamename or your Games Services ID... cause I assumed it meant your Leaderboard ID e.g. "Cgk####_lb########"

    The example capx provided by cocoon has LEADERBOARD_ID as the field for Request player score

  • Use the music folder as a second folder or isolate the index by saying button 1 uses 1 to 10 and button 2 uses 11 to 20

  • I'm kinda proud of figuring this out just now.

    I was about to agree that it had to be done the hard way when I decided to double check that audio files can't be indexed.

    But what do you know.. they can!

  • Yeah I know what you mean, I usually just don't trust the restart event and go with my own ' on function "reset" '.

    Depends on how much stuff you need to restart I suppose.

    Having said that I just created a blank project to play around with resetting stuff.

    I added 2 sprites, 1 for position, 1 for visibility. I added a variable which was displayed via a text object and set through a textbox object. Also added a button to go to layout 2.

    From layout 2 I had a button that, "on click" calls: System>Go to Layout 1 & System>Restart Layout & System>Reset Global Variables to default.

    Layout 1 does reset properly from layout 2. The global variable gets zeroed, positions and visibility all go back to initial states.

    I'll add that I was surprised to find that BOTH layouts got reset.

    If a sprite gets it's Visibility from a global variable (eg. if x=1 sprite invisible) AND you DON'T Reset Global Variables to default then a "restart layout" wont effect it's visibility.

    System>Restart Layout

    System>Reset Global Variables to default

    That should Nuke everything back to 0.

    If not, Write a Function that sets everything how you want it to be and call it On Start of Layout.

    here's another way that just came to mind:

    Menu layout, start game button > goes to Layout "Game" & sets a Variable "new_game" to 1.

    On Start of Layout "Game", if "new_game" = 1 Restart Layout & Set "new-game" to 0.

    By the way, probably isn't related to your question but you can right click on Variables and send them to other Event Sheets.

    Oh and use Local variables where needed, which can be added to Groups.

  • Construct 2 Feature suggestion

    Any chance we could get browser style navigation hot keys added to the add object / event / action windows.

    I got a mouse with a million (17) buttons on it and I've gotten used to using the navigate forwards / back buttons when using the internet or moving through folders.

    It would greatly improve workflow with these features.

    Just throwing it out there.

  • That's why I posted here, so everyone could see what they have to say.

    I'm guessing they'd want to have a look at the site first. We'll see.

  • as the title say's, I love C2 that much that I'd like to give it a shout out.

    I'm doing a page on misc software that I really like and I think C2 should be top n center.

    It would be great if I could just copy paste some of the text from the C2 home page to give a 'about' description and add my own promotion blurb underneath.

    to be clear, im not trying to sell C2, just mention that I think it's awesome. I would have loved to do the affiliates program had that started, but I'm sure C2 is doing great on it's own. any advertising is good advertising?

Draimond's avatar

Draimond

Member since 19 Mar, 2014

None one is following Draimond yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies