ShaDowora's Forum Posts

  • 12 posts
  • Is there any solutions to my problem?

    Is there anyone who use nw.js to export a project with video has this problem?

  • Check that these objects are not set as Global.

    Run the game in Debug Mode and check if these objects really disappear (zero instances), or maybe they are invisible, or off-screen, or on invisible layers etc.

    If nothing else helps, please post your capx.

    It seems like some objects in my level two are set as Global.

    Thanks for your answer.^^

  • Hello

    I just make a layout to choose which level do players want to go.

    The code work like this:

    On XXX is clicked→ Go to layout XXX

    However, when I go to level two (only happens in level two), lose the game, and choose level two again, most of objects on level two disappear (not on the screen)

    avatar, map, land, tree all disappear, only UI bar and some items which use "create objects" to spawn on layout.

    C2 create/load objects before go to layouts, so these objects which are placed in layouts should be appear without write an event like "create object", isn't it?

    And this problem only happens in specific level....

    Does anyone know why would this happen? How can I fix it?

  • I don't know if this is Construct 2's bug

    I make a game with several level, and make a "Free mode" to let players choose which level they want to play.

    However, when players choose the level, lose the game, and go back to title, if they choose that level again, most of objects in that layout didn't exist(no object is on that layout)

    But this bug only appears in the level 2, other levels works well.

    I place all of objects before instead of using "On start of layout, create XXX".

    What happens to my game? Is there any way to solve this situation?

  • I'm using mp4, try this one, maybe it can help you a bit.

    https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases

    I use .mp4 and export my project, but I can only hear the music of the video....

    I've found that update nw.js for C2 and replace the file(ffmpeg.dll) can fix lag when plays the video, however, I found that players who don't have nw.js for C2 still have the problem when they play the video...

  • Hi there,

    I'm trying to insert a video in my project.

    Because I'll export my project in .exe format, I use NW.js as my browser

    I know that NW.js only support .webm and .ogv

    However, when I add my video and start the layout, the video plays really lag....

    I wonder if my video has problem, or it's just NW.js's bugs

    PS: When I play the video in chrome, it works well.

  • Thanks guys, I think I finally find out what is the problem.

    It seems like my buttons' collision polygon didn't set well...

    I also add some tag to check that buttons are able to be clicked.

    Thanks^^

  • I noticed that when uploading an image, file extension should be in lowercase. "Image.jpg" works, "Image.JPG" doesn't.

    OMG, I'll try it.

  • I use for each loop but it sometimes still doesn't work...

    And I select images I want to upload, but it appears message "File must have .jpg, .jpeg, .png extension."

    But all of my images are .png, and size are small then 1MB...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello there,

    I try to use C2 to do my game's title, I want to make an effect when user's mouse is over the buttons, so I make this eventsheet:

    For each buttons:("buttons" is buttons' family )

    -Mouse:Cursor is over buttons → Set buttons' animation to "on"

    -Mouse:Cursor is not over buttons → Set buttons' animation to "off"

    However, it didn't works well,

    Sometimes user's mouse is over buttons, and buttons' animation changes to "on", but sometimes buttons' animation still keeps "off"...

    I don't know why it didn't works, is there any wrong with my code?

    BTW, could anyone tell me how to upload images on my topic? I still don't know how to show you my C2 debug's condition...

  • Check your imagepoint on the enemy sprite it may be in a weird spot. Also add a wait=0 before the destroy enemy in case it is destroying the enemy before it can spawn potion.

    The imagepoint on enemies is "Origin", I don't change or set another imagepoint on them.

    I wonder if the behavior "Bullet" on enemies has any relations to this bug, but in my teammates' projects this can work too.

    Currently, I just test the distance between enemies and the point which potion creates, let the code increase/decrease the number of x and fix this bug.

    Although I still wonder why this bug happened, both of my and my teammates' code are the same.

  • Hello bro, I'm new in Construct2

    I try to do "drop item after kill enemies"

    So I just program like this

    Bullet:On collision with enemy>Create "potion" at enemy.x,enemy.y>destroy enemy

    However, potions don't appear at the right place, instead, potion appears forward/backward the point

    What's wrong with my coding? I saw other tutorials and they both do like this...

  • 12 posts