ProPants37's Forum Posts

  • what should i do here?

  • Hello, Is there a way to allow a person to upload their own audio into a game?

    Like, you want your own background music and then you press a button and choose a file from your computer to play in the background.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm making a game and i want an object to spawn at a random point on the screen. How do i do that??

    Thank you.

  • You do not have permission to view this post

  • oh, that's sad.

    thanks for the help tho!

  • it also says that the file has 0 KB. That means that the file is empty, right?

  • When you see that message that Construct cannot open your file, press F12 and check the errors at the bottom of the console log.

    "[Project] Exception opening: File format is not recognized."

    is there something i can do?? The file format is a C3P.

  • Thanks, ill try that

  • please i've ben working on a game for months and months, then i was editing it and it crashed with a error. i replaced the old game file so i dont lose the information but then when i tried to open it multiple times it said it was an invalid file even tho it was a C3P. please if someone knows if there is a solution for this PLEASE help me

  • i want to have a textbox that you wirte something, press enter and then the text just apears in a speech bubble above the player. how do i do that?

  • You do not have permission to view this post

  • Then it probably comes from edge bleeding. That explains why it looks normal in editor and looks wrong in preview. If you go to project properties - Sampling and select "Nearest" - it would probably solve this particular issue, but would also change how your game looks overall. Other than that, maybe try changing the size of this object in Animation editor. When I need a solid-color rectangle - I create a 10x10 sprite and resize this object to whatever size I need in the game, and I never had this issue.

    it worked, thanks!

  • Is it a small object that you resized to be bigger? If yes - then open the Animation Editor and remove the 1 pixel-wide transparent border around the object

    but yeah it is a small object that i made bigger, but there is no transparent border.

  • We will need to see more of your code to help you out with this one ^^

    i'm still making the layout, so there is no code yet

  • You can create a sprite, make it small 3x3 or so. Set the properties initially visible to unchecked (so it isnt visible). For the sake of this we will call them spawnLocation.

    Now just copy paste these to each spot you want to be an option for randomly summoning.

    System > Pick Random Instance will allow you to choose spawnLocation object.

    Then Create Object (Whatever you want spawned) at spawnLocation.x spawnLocation.y

    If you want multiple spawned and don't want them overlapped - add a boolean type instance variable to your spawnLocations set to false. Simply check for spawnLocations that are showing false when you pick your random spawnLocation.

    tysm! i'll try that