RobertoFreemano's Forum Posts

  • Thanks Guys,

    I think Pathfinding looks un-natural for an enemy. I suspect Tile Movement will be same :(

    but I appreciate your help ;)

    Roberto

  • Hi,

    I have a sprite with bullet/Line-of-Sight (LoS) on player in a maze. If Player is seen by sprite, then it follows around the maze. What's happening is... the maze walls are a tilemap with solid behaviour. The following Sprite sometimes get stuck in the wall and i cannot go any further.

    I've tried... if Sprite collides with Tilemap, then set angle of motion - 180 degrees and even bullet to 0.... nothings working.

    Can anyone advise?

    Thanks,

    Rob

  • HI Community,

    I'm testing my C2 game out on my samsung phone's browser.

    I built the game Window 1280, 720 / Layout 2280, 1720. uploaded to my site and tested in browser.

    IT'S MICROSCOPIC :(

    I've tested 'Full-screen in browser' modes Letterbox scale, etc.... but nothing's working.

    I've even added Browser/ request full screen - stretch (letterbox scale) in system|on start of layout ... on the menu screen.

    Any ideas pls? I have googled this also. This is a browser intended game... not for google store! The phone browser is more of an option to play.

    IS MY GAME LAYOUT SIZE WRONG/TOO BIG?

    Thanks,

    Roberto

  • Thanks dop2000,

    Simply amazing! works great.

    Thanks again,

    Roberto

  • Okay, after experimenting, I kinda got something.

    On Collision with circle | Targ / Set position to (circle.Angle + Enemy.x, circle.Angle + Enemy.y)

  • Hi Community,

    I have a player sprite with a circle sprite (over lapping player)... it position is set to match player's movement.

    The circle is much bigger that the player... like a radius.

    I also have a target sprite sitting idle.

    What i'm trying to do is... detect if Enemy sprite collides/overlapping with circle... position the target sprite on the edge of the circle - where the Enemy is. then I can set angle of bullets to the target.

    How to achieve this please?

    It's the setting target to edge of the circle that's got me puzzled.

    Thanks,

    Hope this makes sense.

    Roberto

  • Thanks plinkie

  • Thanks blackhornet

  • Hello again,

    I want to perform an ElseIf statement in my game regarding LoS. The player has to get to the Target through a maze. If Enemy don't see Player but do see Target> goto Target... Else, roam idle.

    If Enemry has LoS to Player > set angle to Player

    Elseif Enemry has LoS to Target > set angle to Target

    Else

    Enemy roam randomly

    I've tried a few things similar to above, but cannot get it working :(

    Any idea oh brilliant minds?

    Roberto

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Arrrrgh Yes, thank you plinkie. I wasn't thinking straight!

  • okay, think I cracked it now.

    spawner | has LoS of Player

    Sys| spawn_count=5 | spawner Destroy

    Spawner | spawn 'stale spawner'

    Sys Z Set spawn_count = 0

    ELSE

    <<do something>>

    I created another sprite called 'stale spawner'

  • My thoughts are,

    I need to start with spawner has LoS rather than variable.

  • Hi again fantastic community,

    I have a sprite ='spawner' and it spawns enemies when in sight of player. This works until....

    now, I have a global variable ='enemy_count'. So I can limit the spawn count.

    sys spawn_count > 5 | spawner | set animation to 'fin'

    ELSE_

    spawner | has LoS to Player| spawner | * spawn 'enemy' to layout #

    * spawner | Add 1 to spawn_count

    so, it stops spawning once reaching 5. THIS BIT WORKS!

    The problem is, I want to clone spawner all over my layout, but once 5 is reached, it affects ALL and I really only want it to affect 1 at a time.

    My brain is melting here!

    Thanks for your time.guys.

    Roberto

  • Hi Community,

    I'm using Countdown Timer format in my game from the following tutorial:

    Subscribe to Construct videos now

    It's good, but I'm finding it restricting.

    I can manipulate the total_seconds var, which seems to adjust the HH and nothing more, unless I really go low number, then I get the ss

    but what I want is HH:MM:SS and begin with a MM countdown. I've played with this and looked for other alternatives.

    Thanks again Roberto

  • Thanks sizcoz