Kyatric's Recent Forum Activity

  • 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.

  • 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().

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,405 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs