Frostein's Recent Forum Activity

  • Right click on the event sheet, 'Create Global Variable'

  • Create a variable for your sprite 'Is Pressed'

    On key pressed 'L' > Set 'Is Pressed' to 1 > Set sprite animation 'punch animation'

    On animation finished 'punch animation' > Set 'Is Pressed' to 0 > set sprite animation 'Idle'

    Make sure your animation is set to not looped.

    Hope it helps

  • It sounds like it could be the images you're using. Try converting to .png, compressing and reducing size as much as possible.

  • Some wacky stuff is happening, hard to explain lol

  • Nah i dont at the moment man sorry.

    What ive been trying is this and similar...

    - Gave sprite Variable 'Class'

    • Sync the variable 8 bit
    • For the peer.

    If Global Variable 'Class' = 1 > Setbit(Self.Class, 1, 1)

    If Global Variable 'Class' = 2 > Setbit(Self.Class, 2, 1)

    Set client input state "Class" to Sprite.Class

    • For the Host.

    If Variable 'Player_Name' = Multiplayer.MyID > Set Sprite Variable 'Class' to Global 'Class'

    If Variable 'Player_Name' Is Not = Multiplayer.MyID > Getbit(Sprite.Class, 1) = 1 > Set 'Class' to 1

    If Variable 'Player_Name' Is Not = Multiplayer.MyID > Getbit(Sprite.Class, 2) = 1 > Set 'Class' to 2

    • Common.

    If 'Class' = 1 > Set Animation to 'Class1'

    If 'Class' = 2 > Set Animation to 'Class2'

    Please Forgive me for my abomination of an explanation, i know... its laughable ^^. I have 0 coding experience and just a few weeks with this program.

    If you have an email address and a little spare time, i can send you my project so you can see for yourself. Id be happy to help with any graphic work in exchange

  • Spent so much time on this, I cant even think anymore so it might be a simple solution.

    I have a multiplayer 1v1 fighter game.

    Before going from 'Login' Layout to 'Game' layout, the player chooses class1 or class2, it is then set to a global variable 'Class'. 1 or 2.

    How can i use the variable to change the animation for the character sprite? With the correct animations displayed on the Host and Peer's screen for each character.

    Ive tried loads of stuff and my mind is boggled. Any help or alternative suggestions would be Amazing. Thanks. (Not able to post Capx yet sorry)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Duplicate this 'Keyboard > Space is down > [PLAYER] Set position to (self.x+15; self.y)'

    Add another condition to each 'A is down' and 'D is down'. Presuming you are using those for your direction buttons.

    change the x+15 to x-15 for the one moving left.

    Hope it helps

  • Thanks! This is pretty much what i need, you're a wizard Harry.

  • Pls team! Show me the light.

  • if the host disconnects, How do i pick a new host from peers already in a room? Cant seem to find any options in the Multiplayer object.

    thanks in advance.

  • nvm im dumb lol

  • Hi, i have two check boxes that set the global variable 'Class' to 1 or 2. How can i reset the global variable 'Class' back to 0 when no check boxes are checked? Cheers

Frostein's avatar

Frostein

Member since 20 May, 2015

None one is following Frostein yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies