Matei511's Forum Posts

  • I'm assuming this is based on an existing game, do you have an example video?

    the players move like they do in pikes.io (on the google play store) I am trying to make it so that 4 players can play on the same mobile device (the screen isn't supposed to move, it's the same big screen for every player it's split in 4 just so everyone knows which side of the screen his controls are in

  • It's for mobile. screen split in 4. Every section acts like a gamepad for 1 character. Characters have bullet and the "gamepad" only sets the angle .

  • ID in XForID is a number assigned by the system. You can not change its value to anything you want to.

    You can of course change that value by touching screen.

    The expression Touch.TouchID is holding the value of it.

    Write Touch.TouchID to a textbox under a 'On any touch start' event. Watch it evolve to understand it.

    so how can i make the following game : screen split in 4. Every section acts like a gamepad for 1 character. Characters have bullet and the "gamepad" only sets the angle .

  • Keep the touch Id as an instance variable in the invisible sprite, make left always 0 and right 1, when you touch it, set the value from the instance variable.

    Can you provide more info on the movement, like lets say you touch the left side of the screen, then left player is moving, but how? Do you use a arrow panel where you move the players and tap to select which one you more, of when you just tap then the left size left player moves automatically?

    but how do i set the touch ID, i can't find an event. So basically the screen is split in 4 and there are 4 characters, the 4 sections act likr gamepads, each controling a certain character. Te characters have a bullet behavior, yhe gamepad only sets the angle of the character.

  • Divide the screen with two invisible sprites which the player cant see, put one on the left side other on the right size, if player touches the left screen it will also touch the invisible sprite, you can use this to determine which size is touched and move the right player.

    i already did that but that do3sn't answer my question. I need the sides to Always have the same TouchID. For example the left side to have TouchID(0) and the right one to have TouchID(1). If i first press on the right then on the left, the right will have touchID(0) and the left touchID(1)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i am trying to make a game with controls similar to badland (the screen is split in 2 parts and touching the right side will make character R move, touching the left side would make character L move) My game is more advanced and need the touch.xforid and touch.yforid . How do i make it that touching the right side will always move the R character and touching the left side will always move the L character. a fix for the problem would be that when you touch a side it sets the touchid to a certain number but i don't know how to do that. Help wouuld be highly appreciated

  • i am trying to make a tiled background scroll and i use every tick set position to self.x - 2. but it's not working. it has worked on other tiles backgrounds that were on a diffrent layer. parallax is set to 100,100. the only diffrence between the 2 tiled background is the size( one is 1024 by 1024) and the other 128 by 128. how do i make the big one scroll?

  • Apply the physics behavior to the ground and set it to not movable. It also needs the pysics behaviour to collide with the coin. A regular solid doesn't work with physics.

    I have the exact same problem , but my tilesheet has physics set to immovable and so does the rock and it fall through. it doesn't fall through sprites, just through the tilemap

  • Asmodean if i am not supposed to mix physics with solids how do i make a physical object solid? (so you can't go through)

  • i have a boulder that's a physics object and it's not falling. immovable is set to no. i have no idea why it's not falling. here is the capx: https://www.dropbox.com/s/k5bn3ywk6apnw ... .capx?dl=0 just oush the first lever (by clicking on it's base) and you will see the rock just floats

  • Add plugin Cordova Media in intelXDK

    and how do you do that?

  • Imagine a leashed dog. the leash is attached to a bar. The dog can move wherever he wants inside a circle with the radius equal to the length of the leash. how do i make something like that in construct 2? I need this for a touchscreen joystick (i want to bound the movable middle part to the big circular outer part)

  • thank you DolyGamesCosmos

  • Hello i am new to construct 2 and i was wondering how you can make a gattling gun or machine gun (i already know how to make a rapid fire rate) but i need help on adding bullet spread

    (for example the heavy from TF2, when he shoots, his bullets don't go in straight line, they have a cone in which they fire). Hope you can help me