shirokuma's Forum Posts

  • You could also use an instance variable if you wanted your ammo count tied to the object on screen. So if the object on screen is destroyed and you spawn a new one it will will start with the default value of your instance variable instead of needing to reset your global variable.

  • Do you have a capx file we could look at?

    I created a test file and couldn't reproduce your problem. Maybe you can see something in my test file that will solve your problem.

  • You had a line of sight behavior on the enemy but no event to use it. So I added an event for when the enemy can see the player the enemy will move at an angle towards the player. You can play with the number of pixels the enemy moves in the action to get a speed that you like.

  • Gweely

    I was able to get it working on my web server, but not when it's served by Dropbox. All I did was on the start of the layout add a preload for the sound.

  • Gweely

    Well, I don't think you did anything wrong. I just made a test project that is about as simple as you can make it, and the audio doesn't work on an iPad. I've served it up both with Dropbox and on my own web server. In both cases there was no audio on an iPad. This was a HTML5 export. I'm going to play around with it a little more.

  • I gave it a try on my iPad (1st Gen iOS 5.1.1) and there was no sound.

    On my PC the only sound I heard was a crash sound when I died.

  • The MIME types would be set on your server:

    https://www.scirra.com/manual/84/sounds-music

    Just out of curiosity what was the original format of your sound? If it was the wrong type then Construct 2 didn't create the two types necessary:

    https://www.scirra.com/manual/52/import-audio

  • I made a few modifications and was able to get it working.

  • What the... How did you do that?

    I see the search_id=unanswered

    I'm assuming the fid%5B%5D=147 is the forum ID.

    Ah that's it. I just swapped the 147 to 178 and got all the unanswered beginner's questions.

    Thanks!

  • It looks like you are only entering that loop twice. Once immediately as you start the layout, and once on first bug collision. I created a global variable called myWatch and set it to 0. Just after you set bOriginalFusion to true in your code I increment myWatch by 1. So when hit the play button it goes to 1, and when I collide with the first bug it goes to 2. (I change the font size and color inside the loop as another indicator.) Just after the first bug collision if you look at PuntuacionObtenida #0 it has bOriginalFusion set to true. If I play for a while longer hitting more bugs myWatch no longer increments.

    I had to toggle off a PuntuacionObtenida outside of the loop to see the one with bOriginalFusion set to true.

    I think I would need to spend some time digging through your code to try and understand the logic better in order to do more. I just can't do that right now since I'm at work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When I run your project in debug mode it appears there is no PuntuacionObtenida. Looking at your code, right after you set bOriginalFusion to true you destroy PuntuacionObtenida.

  • It would be a nice feature for the forums to either be able to filter or sort the forum posts. For example I'd like to be able to look at the unanswered posts, and then be able to filter it so that I'm only seeing posts from the "How do I..." forum.

    Or if you could just sort by the columns in the forums you could accomplish the same thing. I could just go to the "How do I..." forum and sort by replies.

    It would make it easier to find people that need help.

  • You could use instance variables. (If you select one of your characters in the properties panel you can add the instance variable.)

    So each instance of an object has its own copy of the variable and keeps track of the value. (When you assign an instance variable to a family each instance of that family member keeps track of its own value.)

    The only thing is if the instance is destroyed the values are lost. So if you want to keep the values for beyond the life of the instance you would want to use either an Array or a Dictionary.

  • The pin behavior will not set the platform to the pipe's position and angle, it will only keep it there if you move or rotate the pipe. Consider using Set position to another object on the platform to set it to an image location on the pipe, and then you need to set the angle to the pipe's angle.

    You might want to place a pipe in a container with the platform. So that any time the pipe is created or destroyed the corresponding platform will also be created or destroyed. (Select the pipe in the projects panel, and then in the properties panel under Container click on create. In the window that pops up select the platform.)

    You might want to consider placing all of your pipes in a family. That way any behaviors, actions, etc... can be applied to the family as a whole. You can still apply things uniquely to elements of a family when needed.

    You might want to consider reducing some of your file sizes. You make nice artwork, but I think things will become unruly as you add more layouts.

    Have you thought about how you are going to have Slimy go up a pipe? Or decide to go up a pipe at a T intersection? (Look out, here comes another you might) You might want to think about these things before you go too far down your current path.

  • Your game looks great.

    Everything seems nice and smooth for me.