dop2000's Forum Posts

  • You need to pick 1 instance of the line, pick 1 instance of the ship, pin line to the ship. Then repeat with the next pair.

    How you do this depends on your code.

    If lines are spawned from the ship sprite, simply pin them in the same event, for example:

    On Space key pressed -> Ship spawn Laser; Laser pin to Ship

  • https://www.dropbox.com/s/2v0a6lxqsqi0p ... .capx?dl=0

    1) fixed, see the event sheet.

    2) I don't know why this is happening. I'm guessing if the wall is located in this exact position, then the Solid behavior stops character sprite before collision event is registered..

    Anyway, the easiest way to fix it is to slightly alter the collision polygon of the wall sprite.

  • You mean like this?

    https://www.dropbox.com/s/rqe6p4yfvvhrw ... .capx?dl=0

    Instead of the second "reference" sprite, you can use a variable that simply increases with every tick (newAngle=newAngle+dt).

  • BDPNGUINS

    Add Physics behavior to your sprite, then add this action:

    Sprite-> Physics Apply Impulse

    The original question was about the Platform behavior.

    If character is on the ground, simply use "Platform Simulate Jump"

    If character is not on the ground, you can do something like "Platform Set Vector Y to (Self.Platform.VectorY-500)"

  • See capx file from this comment:

    This is a popular question, try searching the forum for the word "laser", there may be lots of other solutions.

  • Sorry, I don't understand. I thought your main problem is to detect when the status bar is visible on the screen.

    And then you can display a hint to the player to swipe the screen and get rid of the status bar.

  • Here is a post from FAQ that can be useful:

  • omerslash

    Regarding your seconds issue - have you tried "Browser Is Fullscreen" event?

    If it doesn't help, you can try comparing if Browser.ScreenHeight=Browser.WindowInnerHeight

    In mobile app, this might work. However, when I'm testing in different browsers, I'm getting inconsistent results...

    I suggest you make a test version of the mobile app with a big text debug field where you print the following expressions:

    Browser.ScreenHeight & newline & 
    Browser.WindowInnerHeight & newline & 
    browser.WindowOuterHeight & newline & 
    browser.DevicePixelRatio & newline & 
    WindowHeight[/code:35rod17j]
    
    Try running this test app with and without the status bar, see how these values change. 
    You may be able to figure out how to use them to check if the device is in fullscreen.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's hard to guess what's going on with just those screenshots. Consider posting your capx.

  • I don't understand your data structure... If there are many different dictionaries, how do you expect to get only one dictionary in the end?

    Anyway, here is a demo I made, maybe it will help. It first wraps 5 dictionary instances into other dictionaries several times, then restores them.

    https://www.dropbox.com/s/oc4i65d0wqm13 ... .capx?dl=0

  • Привет, kop9000

    That plugin does a simple typewriter effect (with a few variations). There are plenty of examples how to do this with events, google "Construct 2 typewriter". Here are a couple of links:

    viewtopic.php?t=63552

    https://www.dropbox.com/s/d4396pwak0oh7 ... .capx?dl=0

  • I would do this the other way around:

    Why do you need this array anyway? You have a bunch of text instances, create an instance variable and fill it with random values.

    I'm saying this in every post - arrays in C2/C3 are overrated. Most tasks that people are trying to do with arrays, can be done easier with instance variables.

  • No need for a button, any touch event will do. It's the same in C2.

    This is not something specific to C2 or C3, it's a browser limitation, you can't request full screen without user interaction.

    I believe when you build your mobile app, then you can switch to full screen straight away.

  • You can only request full screen after a touch event (but not "on Touch start"). For example:

    On any touch end: Browser Request Fullscreen

  • Add a tag "music" to your music playback. Change your event to this:

    Audio Tag "music" is NOT playing -> Audio play "MyMusic.mp3" with tag "music"

    What do you want to control will this slide bar - music volume?

    On slidebar change -> Audio set "music" volume to slidebar.value

    Here is how you properly change audio volume: