Kyatric's Recent Forum Activity

  • Using the Browser action "Request full screen" does make all devices go full screen as indicated on Page 2 of the tutorial.

    Certain devices might require the action to be triggered by a user action (clicking a button object on iOS for example).

  • No. You need your own license issued to your name.

    Licenses cannot be shared, lended or transfered.

    Licensing terms

  • Tutorial about supporting multiple screen sizes.

    You could have found about this tutorial directly in the manual or simply using the search function.

  • Your Autoplay value is "Preload", once loaded, the video plays.

    Moreover, you used the "Can play through" condition to execute the play action.

    So very quickly, the video plays, as intended.

    With video, in the start of layout, you want to set the source for your video, and possibly make it so that a user action is requested.

    Using a button and setting Autoplay to No, this gives :

    By default the button is outside of the layout, when loading of the video is complete, it appears under the video and clicking it allows to play the video.

    On my computer the video does not lag at all.

    If it does on yours, consider profiling your program with the debugger and checking for errors in your browser as well, make sure you are using a up to date browser with up to date graphic card drivers and make sure your computer is powerful enough to be able to decode video and audio on the fly.

  • Change the autoplay property value. It won't start automatically.

    Makes sure you are not using the "Play" action in a "On start of layout" event.

    Do read the manual and learn what tools you have at your disposal.

  • Use the system expression int() or round() or ceil() or floor() according to what you exactly want your result to look like and place your formula within the parenthesis.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Several ways to implement, depending on your exact project.

    Check the different implementations available in the How do I FAQ section Scrolling / Camera.

  • Open up the provided example with Construct 2 named "Audio analyser.capx" which is commented.

    You should get all the code and explanation you need (also using the manual article for Advanced Audio.

  • The solution provided sounds correct and it is called a buffering input.

    Although you should actually reset your variable to 0 in the "On release" no matter what, using a blank event for example.

    Key is pressed => Add dt to variable (Delta Time)

    Key on release

    ... Variable < 0.5 => Do dash

    ... Variable => 0.5 => Do Slow time

    ... (blank) => Reset Variable

    This way your variable will only build up when you are pressing the key.

    And the time there are akin to pressing the key for half a second. Using dt, you are getting an exact value of 1 added each second the key is down in a consistent manner over all computers.

  • I'm afraid the best way to provide a fluid video is to reduce its overall quality, that is to say provide it in 480 p (a resolution of 720×480 pixels).

    This will reduce the download size of your video and will make it easier to be read across all computers/browsers.

    Once you have such a video, allowing only the user to play it once you have downloaded enough of the video to play it should also help out, as previously hinted.

    With videos, preload does not work the same as with audio or layouts.

    You have to "delay" the playing of your video until your reach

    On playback event

    "Can play": triggered when enough data is available to play at least a couple of frames, but there may not be enough data to play through to the end.

    or

    "Can play through": triggered when the browser determines that the load progress and transfer rate are sufficient for playback through to the end without stalling for buffering. However this is not a guarantee, since the transfer rate could drop or be cut off completely.

    Using "Can play through" will make sure you have loaded the whole video.

    But it requires to hold on on playing the video.

    Once this event triggers, you may then want to provide your user with a play button of sorts allowing them to launch the video and experience it comfortably.

    The user action is also required on certain devices, and some devices (like iPhone) WILL show the controls for the video anyway (because Apple).

  • Well, your code does exactly what it is supposed to do.

    It takes a X as target and will move your object until it reached that destination.

    What you are wanting is far simpler.

    You want, on click, to change the direction of the object.

    So by default have it going in a direction.

    On touch, change the value of the direction.

    The object is now moving the other direction.

    It gives :

    When dir is = 0, move the object to the right.

    When dir is = 1, move the object to the left.

    On touch, modify the value of dir so that it is either 0 or 1.

  • In that case what blackhornet hinted at wasn't even actual UIDs, but to create instances of your main object type (in your case array).

    The object type would contain an instance variable and each instances of the array would have a different value in this instance variable.

    This way it would be possible to pick a specific instance of the array according to the value of the instance variable.

    But in the end UID allow for the same picking efficiency.

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