Kyatric's Recent Forum Activity

  • mostafanastary: I modified the link in my previous post, it is now working.

  • Both conditions "System - Compare two values" in the same sub event (hence the AND).

    And both actions in that sub-event.

  • It is a bit difficult to answer as it depends on how you have set up your project, and as such should provide your capx to have an accurate and adapted answer to your project.

    But pretty much, before your battle, you already know how many enemies are in line of sight and should have a step "pick enemy".

    During that step, do an interface that shows your possible enemies to the player (according to their type/instance variable and so on, again hard to answer, depends on your project), and from there allow the player to pick one. (Could be done by selecting a grid cell that is highlighted, you know the UID of the enemy that is on this cell so depending on the UID, you know what enemy is picked and can then display it in the Battle part.)

  • Have several instance variables in your bullet object :

    • TargetAngle - Numeric
    • Shifting - Boolean (False by default)

    // Sets the random value and tells the bullet it needs to shift in that direction

    Event condition Every 1 sec

    • action Set TargetAngle value to random(0,360)
    • action set boolean Shifting to True

    // The bullet is shifting in the target direction

    Event condition Bullet Boolean Shifting is true

    • Action Set Bullet.Bullet.AngleOfMotion to anglelerp(Bullet.Bullet.AngleOfMotion, Bullet.TargetAngle, dt * 4)

    // We check a range where the angle of motion could be to stop the shifting

    Sub event

    condition System compare two values - Bullet.Bullet.AngleOfMotion + 2 < Bullet.TargetAngle

    AND

    condition System Compare two values - Bullet.Bullet.AngleOfMotion - 2 > Bullet.TargetAngle

    • Action - Set Bullet.Angle of motion to Bullet.TargetAngle
    • Action - Set Shifting to False
  • Video plugin manual article

    [quote:1riwzw5g]Compatibility

    On Safari for iOS and Chrome for Android, video playback cannot begin unless triggered by a user input event.

    The application you make out of Construct 2 is actually a browser "executing" your application.

    So no, no way around that I'm aware of.

    As for fullscreen, no idea why this is happening. Perhaps it is due to the fact that

    [quote:1riwzw5g]Safari on iOS does not currently support rendering video inside the game canvas itself. To work around this, the Video plugin creates a video element floating above the game, similar to a form control. This ensures the video can appear, but prevents other objects being displayed on top of it.

    Or perhaps it is due to the resolution of the video in regards to the actual resolution of the device.

  • yookonii: Reposted and edited the previous post.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:2mbd6c7v]If you think you can't do anything more, send an email to explaining the issue and what you already investigated.

    Do indicate your username as well as the URL to your game and attach a copy of the archive you uploaded.

    Now is the week-end, support service will check it out during business days and hours in the UK.

  • Two lines below in the list of addons there is the QR decoder plugin that does take a QR code you filmed with the User Media plugin and decodes it.

  • You could look into the Anchor behavior.

    Otherwise, WindowWidth and WindowHeight are system expressions you will want to use in the calculation of your tile's positions.

    The exact calculation depends on how many tiles you have and how you have set them already (through code or not ?)

    Provide your capx to get a more accurate answer in regards to how it is set up.

    Otherwise, check the How do I FAQ to see how to make a grid of tiles through events. This could help out.

  • Well, your condition says "Frog is overlapping log", so yes, from the moment the two objects will be in touch, they'll be pinned.

    And so it means from the moment the frog touches the edge of the log.

    You should add more conditions to the "Overlapping" event to check out the current Y position of the frog in regards to the log :

    Frog is overlaping Log

    Frog.Y > Log.Y - 24

    Frog.Y < Log.Y + 24

    Those two added conditions would check a range and only pin the Frog when it is about 48 pixels from the Log.Y position.

    Adjust this value accordingly to the height of your log.

    Also you can add a condition Set Frog.Y to Log.Y in order to have the frog in the middle of the log (assuming your origin point is in the middle) before the pin action.

  • Checking for errors in browsers otherwise will grant you access to the dev console in the browser and allows to get some further informations on what may be happening.

    Useful informations to provide as well, often has clues about what is going on.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 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