kiugetski's Recent Forum Activity

  • feel free to add me on discord if you need more help

  • You just need a global variable called score. Then you can display it in any layout ( for example Text.Text = score

    that too

  • ok first you need to make a layer in your scene

    then i would recommand you to rename it GUI

    in the layer property set it to Global

    now every time you make a new layout remember to create a layer GUI

    so the first GUI you will work on will become the global one

    then you can make the ui manage the score

    and then everytime you change scene the score stay since its global

    https://www.scirra.com/tutorials/594/bu ... terface-ui

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can use zorder to make your game over above everything

    or use a new layer called game over wich is on top of everything

  • you have to make a layout that will remain Global ... usually for GUI

  • when i create the game i become the host but when a peer join ... i see nothing not even a message saying a peer joined why ?

    [main]

    ----[Signaling]

    --------+ System: On start of layout

    ---------> Multiplayer: Sync Player (with Position and angle, precision Normal (float, 4 bytes) at Normal bandwidth (unpredictable))

    ---------> Multiplayer: Connect to signalling server "wss://multiplayer.scirra.com"

    ---------> System: Set group "Host" Deactivated

    ---------> System: Set group "Peer" Deactivated

    --------+ Multiplayer: On signalling connected

    ---------> Multiplayer: Log in with alias Player.User_Id

    ---------> DebugText: Set text to "Connected"

    --------+ Multiplayer: On signalling logged in

    ---------> Multiplayer: Join room "Universe" for game "KS-AgeofDespair2" instance "AgeofDespair" (max peers: 0)

    --------+ Multiplayer: On signalling joined room

    ------------+ Multiplayer: Is host

    -------------> DebugText: Set text to "You are the host"

    -------------> System: Set group "Host" Activated

    -------------> Player: Set MultiID to Multiplayer.MyID

    ------------+ Multiplayer: [X] Is host

    -------------> DebugText: Set text to "You are a peer"

    -------------> System: Set group "Peer" Activated

    -------------> Player: Destroy

    ----[Host]

    --------+ System: Trigger once

    ---------> DebugText: Set text to "Host is active"

    --------+ Multiplayer: On peer connected

    ---------> System: Create object Player on layer "Layer 0" at (100, 100)

    ---------> Player: Set MultiID to Multiplayer.MyID

    ---------> Multiplayer: Associate Player with peer Multiplayer.PeerID

    ---------> DebugText: Set text to "a peer has joined"

    --------+ Player: MultiID = Multiplayer.MyID

    -> (no actions)

    --------+ Player: [X] MultiID = Multiplayer.MyID

    -> (no actions)

    ----[Peer]

    ----[Misc]

  • nop it does not work so must be 2 separated object

    Basically i have an object called player but invisible hes doing 8 direction

    then i have an other object called spaceship and is always positioning to player and also the spaceship is the anglelerp

  • Have you tried the rotate toward angle/position actions?

    well for now the best thing ive been able to do so far was to create an invisible object that have the movement controls and the visual object that he only do angle lerp

  • hey all i want to make my ship always looking at my mouse but using angle lerp but it need to be able to also work with the ship moving

    can anyone help me please

  • it still work the same on construct 2 i have both license its simply i prefer c3

  • + Turrets: FSM = "Rotate"

    + Turrets: [X] FSM = "Shoot"

    + Turrets: [X] FSM = "Wait"

    -> System: Wait 3 seconds

    -> Turrets: Set FSM to "Shoot"

    + Turrets: FSM = "Shoot"

    + Turrets: [X] FSM = "Rotate"

    + Turrets: [X] FSM = "Wait"

    -> Turrets: Spawn Bullets on layer 0 (image point 1)

    -> System: Wait 3 seconds

    -> Turrets: Set FSM to "Wait"

    + Turrets: FSM = "Wait"

    + Turrets: [X] FSM = "Rotate"

    + Turrets: [X] FSM = "Shoot"

    -> System: Wait 2 seconds

    -> Turrets: Set FSM to "Rotate"

    + System: Every tick

    -> Debug: Set text to Turrets.?FSM

  • you could also make a state machine for that

kiugetski's avatar

kiugetski

Early Adopter

Member since 21 Feb, 2015

None one is following kiugetski yet!

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies