cenowador's Recent Forum Activity

  • Bump of despair ;-;

  • Hello everyone ^^

    I'm making a multiplayer game. I read the four standard tutorials about it and learned a lot from them - kudos to the person who made it :3

    Here's my problem: I run the game, it asks me for the alias and enter the "arena" waiting for a player join the room.

    Observation: I want it to be an online game, so I will rent a server to run it. Thinking about it, the host woldn't have a character, since it shouldn't be a random AI just wandering on the game.

    When a peer join the room, a character is created to the host in the corner of the layout - it should be at random, and was working without the multiplayer interaction -, the name of the character is displayed only for the host and the behaviors that should be activated, are not. The character is also created to the peer, but on the same corner of the host with a difference: the other objects of the container are not created and the character sprite keeps flashing really fast, with the speed of a thousand Barry Allens, and don't have its behaviors activated. Also, the "bullets" that are created when player shoots don't flash, besides they bullet behavior are disabled as well.

    Here's my eventsheet:

    I think the forum doesn't like google drive images nor imgur, so if you can't see them, here they are ^^:

    https://drive.google.com/file/d/0BzI4Lq ... sp=sharing

    https://drive.google.com/open?id=0BzI4L ... ERKX091LXM

    https://drive.google.com/file/d/0BzI4Lq ... sp=sharing

    https://drive.google.com/open?id=0BzI4L ... HdseGF5RTQ

    https://drive.google.com/open?id=0BzI4L ... UVhcHVPS1E

  • It worked! Thanku, guys ^^

  • angle() is an expression that gives you the angle between two points, in this case from the sprite to your mouse.

    So every tick, set angle to angle(sprite.x,sprite.y,mouse.x,mouse.y)

    Welp, it didn't worked at all. It worked, but had the same issue that I was facing using the other way: it's not facing the right direction, the mouse is always tangentially to the ship. I took a print to show where the mouse was.

  • Try Set angle TO angle(sprite.x,sprite.y,mouse.x,mouse.y)

    Sorry, I didn't get it.

  • Hello, comunity :3

    I'm making a sort of an "Asteroids" game, but I'm trying to set the ship angle based on the mouse position, not by the arrow keys.

    I'm using this - Every Tick: Sprite > Set angle toward (Mouse.X, Mouse.Y)

    It's not working, since the nose of the ship does not follow the mouse, just the anchor point of the sprite, which makes it spin in the mouse direction, but not in the way that I want it to.

    Can anyone help me, pls? Thank You

  • Maybe you can create some rectangles and use them as "areas" and set: if touching rectangleX > set char speed to X; if touching rectangleY > set char speed to Y. Got it? If you put them on the HUD layer with 0 parallax they will be on the screen until you decide don't.

    If you have any doubts, just let me know and I can make an example for you :3

  • It's pretty simple: create a sprite > right click on the "animation frames" window > "import files" > "from sprite strip" > select your sprite > set the number of rows and columns of positions that have in your image > press Ok.

    If it doesn't recognize each position as a frame, try adjust the positions of your image on Photoshop, paint or any other editor that you want, but it'll probably recognize it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is your sprite in an unique file in some positions or each position in a different file?

  • I think that the easiest way is to create a global variable and add or subtract from it according to each answer.

  • I'm not sure about your question

    You can make global variables constant (checkbox when you create a variable) - here the variable can't be changed.

    But if you use local storage you can decide what happens.

    Like a condition when localStorage loaded | set variableX to 1

    If you use the standard system save and load (not recommended) you still can make another action after the load - like set value of variableX

    Excuse me, but since you touched the subject, why shouldn't we use the native saving scheme?

  • Have you tried to create a sprite and set an event that says "on click on sprite X"?

cenowador's avatar

cenowador

Member since 31 Mar, 2016

None one is following cenowador yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies