SebastianOs's Forum Posts

  • Simple question: I want the player to go through an object that the enemy can't. I gave the player a solid, platform, and physics behavior. The enemy has just a platform behavior, and the object (a square) only has a solid behavior. How do I accomplish this? Do I need more behaviors or do I just need to use the event sheet to make the player go through this object but not the enemy? Any help would be great!

  • Okay, so I have a main menu lay out, level load layout, and 4 layouts for levels 1-4. On the level load layout, all levels are unlocked but level one... I want to make it to where when you play and beat level one in the level one layout, it will make the 2nd level unlocked in the load level layout. How do I accomplish this? Upon beating each level, you go to the next level, but I also want them to be able to open the game and go straight to the level they last played, so they would go to the level load layout to find it. I am having problems transferring data back to the level load event sheet. I basically programed it to say (on the level one event sheet), "When level one is beat, set 'Level2Unlock' to equal 1 (a global variable on the level load event sheet)." Then, I programed it to say (on the level load event sheet), "When 'Level2Unblock' is equal to 1, destroy the 'Level2Locked' sprite (picture of level 2 locked) and create the 'Level2' sprite in its place (picture of level 2 not locked). For some reason, it is not working. Am I not able to change information in other layouts? Is there a way to do this? And, if needed, is there an alternative way I should set this up? Any help would be very much appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I actually figured out the same problem myself earlier this week. But thank you anyhow. I got the video to work when changing the video format to Webm and then exporting it. I find it bizarre that such a common and popular format (MP4 H.264) does not work in NW.js. I almost feel as though this information needs to be given on the scirra article "exporting desktop apps with node webkit." --> https://www.scirra.com/tutorials/1276/e ... ode-webkit

  • So, I can play videos when I Run them in a browser (however for some reason the videos don't play if they are too long). I have the Personal License version of Construct 2 and I exported my project to my computer to play the game without needing a browser. For some reason, the video doesn't play. Why does it work in a browser and not when exported? Do I have to do something different? Change a setting? How do I get videos to work when exported to Windows using NW.is? Any help is very much appreciated!

  • Thank you so much blackhornet! It all works now! I had no idea there was a Timer behavior!

  • I found an issue while trying to program my character to use a jetpack to fly. I basically told it, on jump, make "jumpsequence = 1" (local static variable) and so on another event, when up arrow is pressed, "jumpsequence = 1", and Platform is NOT on floor, (okay, those were the conditions, now I will sum up the actions --> ) basically make him stay in the air. When Platform IS on floor, make "jumpsequence = 0". This allows him to do this action over and over again. This works.. but the problem is this: When he is in the air, I want him to run out of jet stamina and need to land before using it again. So, I programmed it to basically say, "when he is in the air, and flying, wait 4 seconds, then have him drop." However, if the player decides to make him drop early, the "wait 4 seconds" action still runs! So when the player goes to jump and fly again, because the last "wait 4 seconds" is still running, he lands early. I programmed it to basically say, "when player is in air, "EarlyLand" = 1. If "EarlyLand = 1" then it starts the 4 seconds. However, if he lands early and the 4 seconds have already started, and yet when he lands, "EarlyLand = 0" then why does the action "wait 4 seconds" not stop? To sum up my issue, why is it that once an action is started by "a variable equaling 1" you can't stop the action when the "variable becomes 0"? If anyone is too confused about this to help, then I will gladly send a picture of my events. Since this website doesnt allow pics to be uploaded or attached, I would have to send it to you by email or some other means. Thank you.

  • gumshoe2029

    Hey, I have another question. I followed a platform game tutorial on this site and I'm done with the game layout for now, I made a main menu, and I am now working on making a pause menu. My question is, when switching layouts (by pressing "quit" on the pause menu, or pressing "play" on the main menu) how do I make sure the game stops the layout that is not being used? For instance, when I quit the game, and return back to it, the pause menu is still up. The character reset and my progress wasn't saved, which is good.. but the pause menu and the texts are still there. Why does it do this? How do I get rid of the pause menu and make sure the layout has stopped and will fully restart when I go back to play? Any help would be much appreciated.

  • Thank you for responding. Okay, good. I'm glad to hear I shouldn't have a problem making long cut scenes. I have a big vision for this game, I have been planning on making it for a very long time now. And I am getting lots of help on it. I see so much potential in Construct 2 because it's simple and easy to use and since I am not a programmer, it makes it possible for guys like me to make awesome things. So once again, thank you.

  • This is actually really important. I am thinking about purchasing the game because I need to be able to export the file to my computer. Upon exporting to my computer, is there a restriction on how long videos in the game can be? I need to make some pretty long cut scenes, I have had issues playing long videos when running the game in HTML. But I assume that exporting to my computer would be different. If anyone knows how long or big video files can be in games exported to the computer, please.... I would like any help I can get.

  • I want to make cut scenes for my game. Since Internet browsers wont seem to play a video that is too long or to big of a file, I have to have it play each scene individually. So, I programmed it to basically do this: Play video, when done, change source, play video, when done, change source. That way it can play a sequence of videos. But I have a problem. When it gets to the second video, instead of changing the source and playing the next video, it repeats infinitely. Why does it do that? How can I properly make a video sequence? Here is how I have it:

    1 Video|On Can play through|Video|Play
    2 Video|Has ended|Video|Set video source to "(Webm),""(Ogg Theora), "Game intro (2).mp4" (H.264)
    3 Video|On Can play through|Video|Play
    4 Video|Has ended|Video|Set video source to "(Webm),""(Ogg Theora), "Game intro (3).mp4" (H.264)
    5 Video|On Can play through|Video|Play[/code:321f8xi9]
    
    Any help would be much appreciated!
  • Thank you for replying. Yes, I did put the video's filename into the Video Objects property section. The video wont play when the game starts. Secondly, it seems that I should be able to 'program' the video to play at certain points, as implied by what I read in the video part of the manual. For instance, I want to make the cut scenes take place after each mission is complete in my game. That doesn't seem like hard 'programing' from the looks of your software. From what I read in the video manual, Construct should have the potential to do that. My game isn't really asking much, just to play videos during certain parts of the game. Any help would be much appreciated. By the way, I have the free version of the software. Do I need to buy the full version to do these things?

  • I plan to make a game with cut scenes. I read the video part of the manual already. My problem is, I can't seem to tell Construct what video to use. I created a video in the layout. I then imported an .mp4 file which is compatible. Then I added the event System --> On start of layout. Next I added the action Video --> Play. The strange this is, after clicking "done" a "Parameters for Video" didn't show up. Now, how on earth is it supposed to play a video if it wont let me tell it what video to play? I clicked "Run layout" and as expected, nothing happened. I just want to tell it what video I want it to play and get it to work upon starting the game. If anyone can answer this, please help! Thank you.