AllanR's Recent Forum Activity

  • Zathan

    you probably want to change the set BarMask width event to say: lerp(Self.Width,(100-Water)*150/100,3*dt)

    that reverses it...

  • Execution is suspended when the app is in the background. Not much you can do about that...

    You can have it ask for data when it resumes.

    Ashley responded to someone with a similar issue about multiplayer host shutting down when minimised. He is hoping Google provides a method to keep critical things running, and asked people to add comments to his bug report. The only work-a-round he knew of was to have audio playing - that keeps the app running.

    https://www.scirra.com/forum/viewtopic.php?f=151&t=184285&p=1087072&hilit=suspend+minimized#p1087072

  • I was going to say make sure the other object is not on a layer that can't be moved (like a HUD layer) - I always accidentally put things on the wrong layer...

    But it could also be that the screen has no room to shake where the one object is (close to the layout edge). So, like 99Instances2Go said, if the layout is not set to unbounded, then you have to be far enough away from the edges of the layout for the shake to be able to scroll back and forth. (in other words, the edges of the layout have to be off screen)

  • Most of the time when I get invisible text, it is because the text box is too small. Try making the text box a little bigger (and maybe try changing Wrapping from Word to Character).

    I have also had weird things happen if the layout scale gets zoomed in too far. So that could be an issue.

    If all else fails, use sprite fonts - which may improve performance (some platforms seem to suffer from text boxes).

  • Kazan

    First of all, it is not a bug - and it is not Construct's fault for being inconsistent. This is an open GL shader that takes RGB values as a percentage (0 - 100%) and uses those to modify the image.

    I was able to get much closer to what you want by using the ReplaceColor effect. It takes RGB values (0 - 255) although, if you look at the effect code it then converts the values to a pecentage because that is still what the gl_FragColor function requires. I set the tolerance to 100 and then set the Replace values to 29, 160, 225 and got a blue square that was the same as the original. (I changed the color of Sprite2 to a different color just to make sure it was really doing it). With lower tolerances it was not quite ending up with the same color of blue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, I just tried a new blank, multiplayer template and it does seem to have trouble.

    I remember someone asking about the Scirra signaling server being down a while ago... maybe there is still an issue there.

  • It has been a few months since I last used the multiplayer template - but it worked fine.

    It is very easy to run into trouble if you are not clear on how it works. If your peer position is getting reset, then you are probably trying to move it manually, rather than having the host move it (then on sync, the host moves it back to where it thinks it should be).

    When you follow the rules, it works well, but if you try to do things like you would in a single player game you will break it very quickly!

  • Phoenixbowman

    the event sheet automatically loops - every tick (60 times per second), so normally you don't need to set up another loop, unless you want something else to happen multiple times per tick. So, generally, things will always keep happening until a condition in the event becomes false... (without using Repeat or While)

    It took my son a while to wrap his head around that when he was learning C2. The other thing he kept doing incorrectly was using Wait (thinking it would pause the event sheet). I see a lot of other people get confused with that too.

  • PixelPower

    I just quickly tried your game - one of the problems PrinceofMars had was because the two round buttons (return to menu and restart level) both still work even when they are not visible.

    You should either move them off the screen, or check if they are visible , or put them in a group and disable the group when they are not visible.

  • TRMG

    I made an example a year or two ago for someone asking a similar question. I ended up making an angry birds type game.

    There was a thread last month where someone else was playing with it:

    https://www.scirra.com/forum/viewtopic.php?t=182292&p=1070325#p1070325

    or see my original capx files:

    http://www.rieperts.com/games/forum/angry_birds.capx

    or a better version (but requires ROJOhounds chipmunk physics plugin)

    http://www.rieperts.com/games/forum/angry_birds_chipmunk.capx

    The chipmunk version leaves a trail of dots after each shot - so you know where you aimed previous times. And the chipmunk version preforms better on mobile.

  • I tried it on my desktop too. In Chrome, I get the jank as you reported. Works fine on Edge. With firefox, there is no jank, but the first time there is almost no sound at all.

  • Gearworkdragon

    I have been working on a database application in C2 and ran into the same problem. There is no "easy" solution, but there are a few ways to get close to what you want. First, you could try using the Dictionary object. It allows you to define names, then get the value associated with that name in an expression:

    so, you would have a Dictionary with: "bob":1 "kitty":2 "joe":3 "mary":4... "HP":1 "power":2 "speed":3...

    then, when you want to lookup bob's HP you would use: stat.at(Dictionary.Get("bob"), Dictionary.Get("HP"))

    Since I am working with a MySQL database, I have the calls to the database return the field names as well as the data, then use TokenAt to find what I am looking for, because the query could return fields in different positions depending on what I ask for - so I can't assume they will always be in the same place.

    EDIT: and of course, you can create a general purpose Function called LookupStat (or whatever) and pass in the name, and the stat you want.

    then you could have: value = Function.Call("LookupStat", "bob", "HP")

    in the function you would have Function.Set Return Value to stat.at(Dictionary.Get(Function.Param(0)), Dictionary.Get(Function.Param(1)))

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies