Retrolegend's Forum Posts

  • 3 posts
  • A friend of mine has tried to run their game today, but it doesn't seem to be working. First, their game opened with a black screen. After that, they asked for my help and sent me the file. I wasn't able to open it. Construct gave the error message "Failed to open project. Check it is a valid Construct 3 single-file (.c3p) project."

    After a bit of troubleshooting, my friend encountered the same issue. They still had their original file open, but that wouldn't load their game layout.

    I suspect their file might have corrupted, but according to them it was working just fine an hour ago. I've tried copying the file and opening that as a .zip, and I'm able to see everything just fine there, but it still won't open.

    Any ideas?

  • 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 fighting game. In the code, I have characters who are hit affecting the global variable "Player1Percentage" or "Player2Percentage" depending on which player value they have for their instance variable.

    Currently, I have 2 separate events for whether a character with "Player = 1" is hit by a hitbox with "Player = 2" and vice versa, then adding the hitbox's damage value to "Player1Percentage" or "Player2Percentage"

    I want to consolidate my code for when I add future characters. My plan right now is to add to a value "Player(character.Player)Percentage" through javascript so I don't need to have multiple events for each character. However, javascript does not seem to like inserting a value into another value.

    How do I affect a variable like this correctly?

  • I am trying this out.

  • 3 posts