dop2000's Forum Posts

  • Try sending it in the url parameter:

    Ajax Post to Url "http://localhost/yourscript.php?register_pseudo=" & Register_pseudo.text

    You may need to modify your php file.

    Also, check the browser console log for any errors.

  • Here is my version:

    dropbox.com/s/tvy796w1hhe68g7/BoundedScroll.c3p

    (I hope I understood the task correctly)

  • Add a "deadzone" - only set the angle if any of the axes value is greater than (-5,5)

    abs(Gamepad.Axis(0, 2))>5
    or abs(Gamepad.Axis(0, 3))>5
     -> Player set angle to angle(0, 0, Gamepad.Axis(0, 2), Gamepad.Axis(0, 3))
    
  • You can't access properties for objects that don't exist on the currently running layout. It's as simple as that.

  • You do not have permission to view this post

  • I don't think it's possible. You can import a sprite sheet, but the images in the sheet need to be arranged in a grid and all grid cells have to be the same size.

  • If these numbers are associated with object instances, it's easier to pick instances directly. For example, if you need to pick a random playing card - put all cards on the layout, pick one at random. Once you picked the card, mark it as used (set instance variable). Next time pick a random card excluding used:

    Card isUsed=false
    System pick random Card
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Save selected index in a variable. When player returns to this layout, use "List Set selection" action with saved index.

  • So you want to quickly copy values from instance variables into global variables, for any instance? The easiest way I guess is to create a function. You will still need to add an action for each variable, there is no way to cycle through all variables in a loop. (at least not possible with events, you can do this with scripting)

    If you have too many instance variables, like a hundred or more, consider using a linked dictionary instead.

  • Like this?

    dropbox.com/s/lhrwer9zr0xudb7/PlatformCar.c3p

    Both wheels have platform behavior and connected with pin. It's not a good solution and will only work if the terrain doesn't have big drops, jumps etc. You can make the drive smoother if you don't rotate the wheels. (Make them invisible and pin a different rotating/animated sprite to them)

    A better way of doing this is with physics, here is a simple demo:

    dropbox.com/s/t9qddhf8q85270j/CarPhysics.c3p

  • You do not have permission to view this post

  • You can right-click the object name and choose "Select all in the project".

    If you have an instance on a "storage" layout, you can quickly change its properties this way. But of course, if you have multiple instances on different layouts, you need to be careful, as changes will be applied to all of them.

  • Really, contents? Encoded in base64 format? There is an addon that allows playing audio from base64 string, you can find it here.

    Or did you mean URLs are stored in the xml file?

  • ACCES-Mathieu Lots of images and links from old posts have disappeared.

    Try this effect:

    construct.net/en/forum/extending-construct-2/effects-31/request-drop-shadow-plus-124707/page-3 I

  • The easiest method:

    player set scale to unlerp(-200, 700, player.y)

    Where -200 is the y-coordinate where the player size will become 0, and 700 is the y-coordinate where it's scale is 1. Of course, you'll need to find your own values.

    You can also wrap it in clamp to prevent the player from becoming too small or too large.

    clamp(unlerp(-200, 700, player.y), 0.5, 1.1)