brunopalermo's Forum Posts

  • It's a System event...

  • Thanks for clarifying...

    [EDIT] dop2000

    Actually, you CAN make an Or Block with Triggered Actions. Just tried it.

    But the Gamepad.GamepadID is not what I thought it was, so my idea is bogus anyway.

  • I'd use a Is between values event...

    Another option would be to have an action to force the maximums, right after the scaling. I mean, If greater than 2, set to 2. If less than 0.5 set to 0.5

  • For triggered events like "on button pressed", I'm afraid you need to create 4 copies of such events. But don't do anything inside these events, move all your logic to a function, which will take gamepad ID and button code as parameters:

    Hey dop2000!

    I've never actually used Gamepad, but, couldn't he just have an "or block" with all "any button" events?

    On Gamepad 0 any button pressed 
    or
    On Gamepad 1 any button pressed 
    or
    On Gamepad 2 any button pressed 
    or
    On Gamepad 3 any button pressed 
    
         Function Call "ButtonPressed" (Gamepad.GamepadID, Gamepad.lastButton(Gamepad.GamepadID))
    [/code:3cb9xmrx]
    
    Not even sure if that makes sense, actually, but it got me curious... 
    
    Cheers!
  • Share the capx and I'll take a look at it...

  • Not an image. Save your project as a single file and upload it to dropbox or some similar service, then share the link here, so people can take a look at it...

  • There are many ways to solve this, depending on how, exactly, is your code. It would be easier if I could see the capx. Can you share it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Could you share a capx? You're probably setting the animation inside a "is down" event, which makes Construct set the animation every tick the keys are down, so it's always going back to the first frame...

  • Hey robertg92!

    It's just like dop2000 mentioned above, but, since you want it to respond to dragging, you'd have to give the sprite the drag behavior and use an isDragging event, instead of Every tick. Here's a capx:

    https://www.dropbox.com/s/34p9qj7gg4qw4 ... .capx?dl=0

    Hope it helps. Cheers!

  • You're probably not telling the host correctly about who's moving who. Could you share the capx?

  • Just a reminder... As a best practice, if there's a physics equation that does something, don't try to reinvent it. Just use it. Most types of movement are already covered by physics (the science, not the behavior), you just have to implement the equations.

  • Event 6

  • Exactly.

  • Hey !

    Is there a reason you're setting the angle inside a "Every tick" event? Do you understand that, in this case you are re-setting the angle every tick, for every Shot, even when the angle is already set? Also, the action to set the Shot's size repeats itself a lot.

    Maybe you should consider a "On Created" event for the Shots, which would do all this (set initial size and set angle), which would make it happen imediately on creation, and leave the "Every tick" event just for adjusting the size dynamically.

    Hope it helps! Cheer!

  • Ok I did it. I had problems with IP, because game is in port 81, not 80 <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink">

    You can change it on Construct 2 settings.

    Or you may specify the port on your mobile phone url by typing:

    http://here.goes.the.ip:port