RobertoFreemano's Recent Forum Activity

  • Hi Community,

    I'm building a browser game and my audio plays fine on PC/Android phone browser but NOT Safari/Chrome via a MAC or iphone.

    I've seen a few articles on this and one suggests > You only need one touch to unmute sound.

    on button/sprite Tap guesture> Audio Set "" unmuted
    

    Does anyone have any ideas please?

    Thanks,

    Roberto

  • That's great - Muchos Gracias dop2000

  • I guess, just pinning it is the easiest solution. Thanks dop2000.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    It's a top down game with 8Direction on player. and I guess, the target is always in front of the player... if player's angle is 0, the target is 0.

    Your second comment is interesting.

  • Hi dop2000,

    !!! This is the last query on this topic - I promise!

    If I just wanted the target the sit on edge of circle and basically follow the player's direction.

    Target set position to Player
    	Target move at angle
    		Angle: angle(Player.x, Player.y, circle.x, circle.y)
    		Distance: (Сircle.width/2)
    

    This works, but it's a little flaky, when moving - i.e. The target jumps around when moving.

    Thanks,

    Roberto

  • I have just tried same logic with Turret behaviour and same :(

  • Hi Community,

    This ain't working for me and I suspect it might be because I'm using LoS on spawner sprite. My spawner sprite has an instance variable = spawn |number =3 and a Timer behaviour

    ////////////////////////////////////////////////////////////////////////////////////////////

    #1 spawner (sprite) | Has LoS to Player

    (sub event from #1) spawner < 0 | spawner | Start Timer "spawn enemy" for 5.0 (once/Regular)

    ELSE (from #1)

    Spawn Enemy

    subtract 1 from spawn.

    #2 Spawner | On Timer "spawn enemy" | spawner = set (instance var) value 3

    ////////////////////////////////////////////////////////////////////////////////////////////

    Now this logic should release 3 enemy (if player is seen)... wait for 5 sec then respawn 3 more enemy. but this ain't happening. I've played with it.

    Any help from a fresh pair of eyes is much appreciated.

    Forever grateful,

    Roberto

  • It make's sense now - Thanks dop2000

  • Hi dop2000,

    Can i pick your brains about this please?

    I'm trying to add an Elseif in the example you provided. basically, i have a spawn object that now spawns the Enemy.

    Circle is overlapping Enemy....................Target set position to Player

    Enemy pick nearest to Player.x, Player.y.......Target move at angle

    ...............................................Angle: angle(Player.x, Player.y, Enemy.x, Enemy.y)

    ...............................................Distance: (Сircle.width/2)

    ELSE

    Circle is overlapping Spawner..................Target set position to Player

    Enemy pick nearest to Player.x, Player.y.......Target move at angle

    ...............................................Angle: angle(Player.x, Player.y, Spawner.x, Spawner.y)

    ...............................................Distance: (Сircle.width/2)

    ELSE

    TARGET set position (as I want it to kind of follow the player, rather than being idle off screen)

    Hope this makes sense... the above doesn't work form me :(

  • Thanks plinkie

  • Hi Community,

    I thought this would be easy but I'm not finding it so. I have a player sprite, who... if overlapping another spriteFog, it will fade... then if player is not overlapping, fade back in. it works with simple opacity reduction but I'm really after fade behaviour.

    SpriteFog |

    Active at start = NO

    Fade in Time= 1

    Wait time = 0

    Fade out time=1

    Destroy=No

    Player |is Overlapping SpriteFog | SpriteFog Fade:start fade

    Trigger Once

    [else] | SpriteFog fade in time = 1

    The first bit works... but when not overlapping, the fade begins again until faded.... that's not what I'm trying to do.

    Any help please?

    Thanks,

    Roberto

    P.s. always grateful for your help!

  • Fantastic AllanR, thank you sooooo much!

    Roberto

RobertoFreemano's avatar

RobertoFreemano

Member since 25 Apr, 2013

Twitter
RobertoFreemano has 1 followers

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies