Kyatric's Forum Posts

  • Well I assumed touch.gamma returns some angle (so up to 360 and down as -360) but I might be wrong.

    Your best bet is to display the value touch.gamma to check how it works. (it's maybe only returning a 1 -1 range)

    Every tick set your text to touch.gamma.

    From there test it and understand the results/returned values.

    Than adapt the checking of the value (if touch.gamma is in the range of certain values, it means the device is tilting to the right, other set of values tilting to the left, etc...)

    The fact that toggling the test makes the actions executed means that this test never returns true. So there's something with the test itself and or it's values range.

  • It's far from finished, but I'll surely throw some beta tests/videos around along the way, don't worry.

  • guicole: you're probably using r73. R74 have corrected those bugs.

  • It's more then a workaround, actually, as it may allow you, in a single event sheet, to decide what to include.

    This is what I did in my current project, allowing to switch from a mechanic to another in a single layout.

    (one side is a track editor, the other side is driving the car in the track we just made).

    The user can switch back and forth, staying in a single layout, and accessing different HUD and actions according to the included event sheet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Event 5 it should be -ADZ (-10) since a negative gamma (<0) means a tilt to the left.

  • So there's progress ^^

    Well, I have access to an Ipad2 this week end. I'll take a look at it and try to provide some solution.

  • In the touch object you have : Device orientation supported

    True if the device supports orientation detection (compass/tilt).

    Run a simple application that will give you the value of this condition:

    Example application

    I'm not sure though that this is a very good practice, as I test this application on my FF on desktop, and it tells me that orientation is supported. I don't have peripheral to use it though.

    Anyway, test it on your Ipad, it might give you a clue.

  • You could also use int(random(x)) indeed.

    The trick here is that it would pick a random float number between 0 and X and return an integer (so a rounded value of the returned float number).

    In the end it all depends to what you're doing.

    Ceil will round up, floor will round down, int will automaticly ceil or floor.

    This post by Ashley gives more info about the use of int().

  • To have custom expression you would need to make a new plugin/behavior using the SDK.

  • Hum I think it has to see with the structure of the project. (that's why, when you delete a global variable, it automaticly delete the events related/using this variable)

    For example, if you'd toggle a gloabl variable, then any code relying on the use of that variable over the whole project would be somewhat discarded.

    For includes, a workaround is to put the include in a group.

    You can then toggle that group, enabling or disabling the inclusion.

  • Same here, I never used GM so I couldn't make a comparison of the two.

    I can suggest you to start with the first tutorial to read nevertheless : the beginner's guide for C2 whish is well illustrated and progressive, it should get you started nicely.

    You can also the check how events work which is the base-stone of C2.

    From there I hope you'll be able to connect the dots by yourself between what you are used to and what C2 proposes.

    In doubt, just post on the forum and welcome <img src="smileys/smiley1.gif" border="0" align="middle">

  • talkinghead: This sounds very promising.

    The "messing in runtime.js" part will indeed be a bit complicated for unexperienced users. But it looks like you majorly covered the documentation part and so this should go smoothly and painlessly for most users.

    arandaschimpf: The better place to start is the manual SDK. This is progressive, have good links to learn about JS with references and guides.

  • The animation speed, from when you click the animation name in the animations bar.

    It is is right in the article I've linked.

  • There's something wrong with the link.

    Also when retry = 1 you start to play the animation, but you haven't actualy "Set animation" by its name.

    That's probably what's missing if all the rest should work as intended.

  • This event probably runs every tick, meaning that every tick it will add (the) 17 instances to count.

    You probably need to add more conditions to limit its execution, or pay more attention to where it is placed (for example, as subevent of a start of layout event, it will only run once on the very beginning of the layout.)

    Be sure to read over and over again how events work.

    When in doubt, look at your code and try to "translate" it the way C2 will read it.

    Event 4, every tick it will loop through each instances of InventorySlot and add 1 to the variable count.