briggybros's Recent Forum Activity

  • The method you described would work and yes there is a more condensed way. I would personally have all of the level buttons as one sprite, and create multiple instances of it. Then the sprite has an instance variable called 'level'. Give the sprite an animation with every level icon, but set the animation to not play. Make each frame of the animation correspond to the instance variable. Then you can loop through all instances of this sprite to see which one has the corresponding level. See attached capx.

    [attachment=0:2u4o5o2h][/attachment:2u4o5o2h]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So your problem is exactly?

  • You should use a webfont. You cannot ensure that everyone playing your game will have the custom font available.

    https://www.scirra.com/tutorials/236/us ... ext-object

  • I would be inclined to say yes. Given C2's browser object there is an option to execute JS code (It is noted that the Javascript SDK should be used if possible). This can either be used as a void method or to return a string or number.

    To check if a button has been pressed on the page, you can store when the button has been pressed on the page using JS in the page's html. While also checking this value from C2 every tick, and if true, set to false. This seems like it should work, but I've never tried.

    To update a text field you can again use the execute JS action, manipulating the page as if you were writing inline JS.

    Please note I've never tried to do this myself so I do not know if it will work.

  • Add a global variable called 'level' or something, whenever the user moves between levels update the value appropriately. Whenever the map is opened, move the player to the level stored in the 'level' variable.

  • I'm making a multiplayer car game, so when each user connects, a car spawns for them. This is a sprite with the car behaviour. However, only the host can move properly. All connected peers can move slightly before the host then resets them. This must be because the host is not receiving, or not processing the client input state, correct? I can't figure out where it is going wrong.

    I have this in my peer group:

    This is my start of layout event and actions:

    This is how the host handles the client input state:

    And this is how the peers car is created:

    What is wrong here, what am I missing?

  • thankyou!

  • Is there a method to get the version string entered in the project properties in the event sheet?

  • Hello, I'm just curious if there is a method in Construct which allows me to change a sprite's image. I know I can load one from a URL and I will use that if it's necessary. I am looking to generate the sprite's image at runtime, or at least on load.

  • Glad I could help

  • You can do this in the way you would do anything in multiplayer, Assign and sync the object. For host just do direct input and for client use the input client input state method. See here: https://www.scirra.com/tutorials/915/mu ... ame/page-4 and the rest of the tutorial. (Assuming you've read MP 1, 2 and 3 before)

  • What are the events you are using?

briggybros's avatar

briggybros

Member since 7 Mar, 2011

None one is following briggybros yet!

Connect with briggybros

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies