Aphrodite's Forum Posts

  • This also works for any key control that does an action inside the browser (like space scrolling down the page), so if there are other keys that have problems, you can use this method.

    https://www.scirra.com/manual/113/keyboard

  • This may not be related, but last time I checked, the volume of sounds and volule of music on chrome for android wasn't controlled by the same system volume setting (the sounds were controlled by the phone call volume, and the music by the applications sound volume).

  • You would have to compare lowercase(myArray.CurrentValue) is equal to lowercase("a").

    As for the equal to "a"|"A", | is a logic operation, it will do "a" OR "A" which returns 0 or 1, so you were actually comparing the value to 0 or 1 (not sure what it should even try to return int hat case)

  • Basically, everything that is ingame is better on layers, pause menus for exemple are better done that way, however, a menu that is not tied at all with a level would be easier to do inside it's own layout, without every other assets being loaded with it (title screen menu for exemple), however if a menu can be accessed in the level and also the title screen, you can have both (an option screen for exemple can be availiable on both).

  • Ashley, Actually it doesn't make sense... I know nothing about box2d other than alot of assumptions on how it works but decided to add kinematics myself because I need them. I changed the Immovable property to body type in edit time and provided 3 options (static, kinematic, dynamic). Then, in run time, I declared the body definition to be whatever it was declared as in the property and presto: I have kinematic bodies. This took 30 minutes, most of which was finding the things I thought needed to be done and learning a bit about box2d. Obviously I need to create some expressions/modify some older ones for full functionality... but ultimately I don't see the complications everyone was saying would exist? Grant it, I only changed asm and not the other two. Is it really more difficult than simply exposing box2d functionality to construct? It seems really strange to me to have all the code in the behaviour to do these things but not be able to access it in construct.

    The question being: will that also work in the cocoonJS physic engine, since it does not have the same functionnalities as box2D (and you cannot just throw it away, nor do things only for box2D I think, or else people will again be complaining that their precious cocoonJS is once again the victim)

  • The graphics are loaded layout by layout, however, if a sprite with a new graphic is created on the layout, it is effectively loaded, but it will not be unloaded later If my understanding of C2 is correct, unless you change to a layout that don't have them.

  • The game now works, but the arrow is not following the touch, when the screen is touched, it would be nice to be able to make the ball follow the touch.

    As an advice, I recommand to try regularly on chrome or/and firefox for android as your main test, and the stock browser after that works first on chrome / firefox, since the stock browser is just bad (but people seems to like it).

  • I think the engine won t update the frames faster than it updates the game itself, which is in most cases about 60 times per seconds

  • troublesum ... Sorry to bother you again but you seem knowledgeable on this stuff, so any ideas why this is happening? Pasting this from my other thread...

    I know this should be fairly basic so I must be doing something wrong.

    I'm sending a json_encoded string from my php file to C2. The string shows [4,3,1,3,1,2,1,1,0,3] when C2 receives it (when set in a text object). It's just 10 numbers in PHP.

    I then try to load it into my C2 array with Array -> Load from JSON string (String).

    The array is still empty, so I'm doing something wrong. Any ideas?

    Can you identify which stage this is going wrong at? Does that string [4,3,1,3,1,2,1,1,0,3] look like a json string to you? That's what it's showing when I echo it from php to a browser, then when I show it in a text object in C2, but when I convert it into my C2 array it's just empty.

    This [4,3,1,3,1,2,1,1,0,3] cannot be loaded inside the array via the load from JSON since it is not correctly formatted, I think using a tokenat and removing the [ and ], you could load the values inside an array.

  • mercuryus

    I think I know the problem, you were using mouse.x and mouse.y (or other mouse relative coordinate) somewhere? Because the default browser for android wrongly reports mouse inputs as well as touch input, but other browsers do not, they report only the touch input and coordinate, tried on google chrome for android, firefox for android, and the stock browser, only the stock browser works (and I am pretty sure that is because it reports wrong inouts, it happened to me so many times)

  • hi Aphrodite

    What type/way of ball control do you miss?

    (did you use a touchinterface or the mouse?)

    thanx!

    [update]

    - i changed the screen height for fullscreen

    - i changed the ball control

    - i implemented scolling the screen

    - ...an add some minor things

    I tested the newer version, and I cannot figure out how to change the power and direction on a touchscreen (I do not have my pc on right now), it seems to go to 0, 0 (relative to the viewport) with 100 power, the scrolling works fine now

  • Glad ro see the sequel's developement has started, good luck (I like the title screen btw)

  • I love minigolf games, currently there is not much control on the ball (at least as far as I saw), but the physics seems to work pretty well, as for the screensize, you might want to learn to support multiple screen sizes since for this kind of game it would work pretty well with not too much things to worry about, also giving the player a way to scroll through the environnement, but for a prototype, it really feels nice, and I am sure you can make a great game out of it.

  • I confirm the top bar isn t there anymore, which is troublesome for navigation since I am using a tablet, and also I do not have a direct feedback on my PMs and topic response, so I do not think this was intentionnal.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think updating texts objects constantly can lead to severe redrawn