oosyrag's Recent Forum Activity

  • Bandwidth is important for the host, as the bandwidth required for data transmission scales for every peer that connects - the host has to send and receive from ALL the peers, while each peer only has to send and receive from the host.

    3g or 4g, you can have a very large bandwidth on a cellular connection, but generally speaking the latency will ALWAYS be bad. This is why real time synchronous mobile games are very rare. Most mobile games are either asynchronous, or set up in a way where timing and lag don't make little difference on game play. Otherwise, you will need to develop some creative and robust lag compensation techniques, which can be done, just troublesome.

  • Two seperate chrome windows, non minimized works for me.

    As for emulating bandwidth, VMs are probably your best bet, but I wouldn't think it worth the trouble... bandwidth is generally not an issue unless you start getting into huge numbers of peers, and in that case it only matters for the host and you'll probably want a dedicated host on a big pipe anyway. Latency is usually the main thing to worry about, and even then you usually don't have much control over that.

  • Sorry those should be Self.OriginXVariable and Self.OriginYVariable.

    For changing on tap, you can use sub events on the Touch - On tapped TileSprite condition, then compare values.

    Touch - On tapped TileSprite 
           
             System - Compare two values - TileSprite.AnimationFrame = 4 | TileSprite Set Animation Frame to 7
             System - Compare two values - TileSprite.AnimationFrame = 7 | TileSprite Set Animation Frame to 11
             System - Compare two values - TileSprite.AnimationFrame = 11 | TileSprite Set Animation Frame to 4[/code:fqbomx5c]
  • Check out newt's link, it should have exactly what you're looking for.

  • That's pretty much exactly what I put in the capx I uploaded, and it was working for me - the only difference was that I created the sprite in C2's editor instead of importing it. So if that one doesn't work for you... latest version of C2 and nwjs?

  • So I haven't tried this myself so i'm not 100% sure, but here's my idea

    If time < wallclocktime | Set timescale to 100

    Else Set timescale to 1

    Maybe add Runonce, but I don't think its strictly necessary

  • For the third part you'll want a global variable called Total, to add up the two animation frames.

    Touch - On touch release       | Add TileSprite.AnimationFrame to Total
    Touch - Is touching TileSprite | 
    System - For Each TileSprite   |
    
    (Make a separate event)
    
    Touch - On touch release       |Set TileSprite.AnimationFrame to Total
    Touch - Is touching TileSprite | Set Total to 0
    
    [/code:wojoighu]
  • Have you tried searching in the tutorials?

    https://www.scirra.com/tutorials/search?q=swipe

    Generally speaking you'll have a friction type value that would always be reducing the object's velocity towards 0 at a constant amount, and then its just a matter of setting the initial speed based on your swipe.

    The basic logic for that is that every tick you will record the position of the object in variables, and you can compare the objects position at the current tick with the last tick when you release the object. The distance between these two points can be used to set your starting velocity.

  • Hi Jamal, the link to the tutorial you are referencing got cut, so we don't know what you are talking about. Try typing it as www dot scirra dot com/ectect.

  • https://www.scirra.com/manual/119/touch

    You'll be using the Touch.Alpha, Touch.Beta, and Touch.Gamma expressions to get the tilt angle in degrees. Which direction do you want to tilt?

    For example, you can set the car angle by System - Every tick | CarSprite - Set angle to Touch.Gamma

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Physics behavior - Apply force towards position. The position would be the end of the bungee cord/attachment/origin point. Use distance from object to origin point, the farther the distance the greater the force applied, to create the bungee effect.

    As for the bat, you can check collision or overlap between the bat and bungee object, then Apply Impulse Towards Angle. Impulse is how hard you want the hit to be, and angle you can use the angle between the bat and the bungee object.

  • OK couple more pieces of advice:

    I highly do not recommend using a program you are unfamiliar with to meet a time sensitive deadline.

    If you are new to Construct, try to avoid using plugins. You can do almost everything with what is included in Construct, and it will be significantly harder to get help on the forums if you use a bunch of plugins. People won't be able to open your file if they don't have the same plugins installed, and few people will go out of their way to install them to help you.

    Now about your project:

    Will each number always be tied to the same color? In that case, you should just draw the number as part of the sprite instead of using a text object.

    I see three main things you need to work on.

    First is preparing your tiles. As I suggested, you should create a single sprite object containing all of your tiles, with each number corresponding to the same animation frame. Set the origin point to the center.

    Second is moving the tiles. You mentioned dragging and swiping. These are two rather different things. Dragging would be relatively easy, while swiping could be rather hard. For dragging, you'll need to add a few instance variables to the sprite: boolean called Active, as well as an OriginXVariable and OriginYVariable to return the sprite back to its original position:

    On touched TileSprite | Set OriginXVariable to Self.X
                          | Set OriginYVariable to Self.Y
                          | Set Active to True
    
    TileSprite Active is True  |  TileSprite Set position to Touch.X, Touch.Y
    
    On touch release     | Move TileSprite to OriginXVariable, OriginYVariable
    TileSprite is Active | Set Active to False[/code:22ddonut]
    
    Third will be changing the tiles. You need to detect which two tiles are to be interacting (just using overlap will not work, as a tile can overlap several at the same time). Then you will change both tiles to the sum of their numbers/animation frame.
    
    Out of time for now, I'll be back with the third part later if you can't figure it out.
oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 38 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies