mahirosan's Forum Posts

  • Sure you can do that. The last solution is the best one, but I think you would have to recode some of your stuff. For the hole in the spawn range, you could do it that way: https://sketch.io/render/sketch56d3817e5066c.png

    I think you already thought that, but just an illustrated way to create a hole in the spawn range.

    You are welcome. =]

  • Just play around with Deceleration parameter...

  • I think the problem is that your range includes the possibility for it to happen. Between +2000 and -2000 is your player. So, I thought that you might:

    • Could create imagepoints around the player in which the enemies would be spawned.

    • Could create a spawnable area, like a set of objects, and set them around the player in a way that they would not touch the player.

    • Set the enemy to spawn the way it is spawnning now, BUT if they are spawned near the player, they are destroyed and then spawned again until they get it right (for that you would create a box that will follow the player everywhere and if the enemy is spawned inside that box, that contains the player, the enemy is destroyed right away and then spawned again... for a better effect you should set them invisible and delay their visibility in a way that the player cannot see the enemies being destroyed by the box)

  • So, I created another sprite with the same condition of the "Pickup" sprite. Player on collision with "sprite" -> destroy, and it happens to work fine for this new sprite, but not for your "pickup" one... Anyway, I couldn't find the problem with the "pickup" sprite but I would just delete it and create another one...

    And if you want the layout to remember the collected/destroyed objects you could use the Persist behavior https://www.scirra.com/manual/161/persist

  • edit:

    going from mirrored to not mirrored in a chosen number of steps...

    Exactly... And these number of steps state could call the flip animation

  • I would guess you are using a global variable to control the item pickup system, which in some cases is not recommended, but for a better guess, please add your code image here so I can help you.

  • If you could post a video or images of your code and/or problem, would help a lot.

  • If you want a proper paper mario turn, I don't think it is possible because mario is a plane and this "plane turning effect" could be only achieved by 3d engines. BUT I think you could create the illusion of it with sprite animation. Hope this helps.

  • If the beahvior works differently, it is supposed that you couldn't reproduce the same outcome from it by the same method. Anyway, I would try the same as you did but using a variable and a timer to reset the variable. So you could say On tap(if var is true)>start counting>set var false>if time bigger than "insert your time here">set var true. I am not sure, but I think you could control better the time between one tap and another by using time.

  • Could you post a picture of the code?

  • I don't know if I got it right, but here is my suggestion... You need to create a instance variable for the object, then you can do: When X event -> Set Y OBJECT instance variable to (Value) or When X event -> Y OBJECT toggle boolean. This way you can control a variable for each instance of the same object independtly from the others same objects. So then you could do a: When Y OBJECT instace variable = value -> Set solid disabled.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I guess that you could create variables for each button, store those variables somewhere and then create a setup in which you could get these values and assign it to the new controller.

  • Oh, interesting solution. Thanks for sharing it. I will try it.

  • Hi guys, so i was wondering... How could I create a camera that is always between two instances/players/objects? We can see something similar in new super mario bros series (more specifically in new super mario bros wii U), in which, I believe, the camera is set between the player closest to the right limits and the one closest to the left limits of the screen. I tried to do:

    Every tick > Set Camera_Position(global var) to (expression)distance(Player2.X,Player2.Y,Player1.X,Player1.Y) - This would give me the distance between the X and Y of the 2 instances. Then I did:

    Camera(object with scroll to behavior) set X > Camera_Position(global var)/2

    But it didn't work. Anyway, I had no clue on how to solve this and how could I do the zoom out limit based on the distance between them. Do you guys have any thoughts about it?

    Thanks.

  • Hi, I am facing tons of problems since I decided to make a game for construct 2 for iphone. So I will list some of the problems I've faced that I can't understand why it is happening and I would really appreciate if you guys could help me somehow.

    * I already tried Ejecta, Phonegap, Ludei and Intel XDK. The one who has proven to be the best is Intel XDK.

    * I do have 2.000+ hours of construct, just saying so you guys know I am used to it.

    * I am using an iphone 5s and an iphone 6, both on iOS 9.0 version, exporting for cordova and using Intel XDK to build the ios app

    * This is the guide I use to export for cordova-ios [https://www.scirra.com/forum/tutorial-upload-your-ios-game-to-app-store-using-intel-xdk_t148447]

    * I am not using complex code or anything that requires high processing

    • When I open the game with the iphone silent switch on and after the loading bar I turn the switch off, the game sound gets buggy and weird, like if there's an effect to it.

    • My whole project has a memory use of 33.4Mb and sometimes the game FPS drop for no reason, like if there's a inconsistency with the code building or adapting. When I say for no reason I mean it because I searched for any problem with the code, large images, opacity changing... I pretty much checked everything most guides about performance for mobile games in this forum talks about and it doesn't work.

    • For some reason, sometimes, the game crashes and close itself. Simple as that.

    I don't know if this is a construct 2 problem or Intel XDK/Phonegap/Ludei/Ejecta but I would like suggestions/solutions for some of my problems or even your guys feedback about your experience with making games with construct 2 for iOS. Anyway, the project is almost done and I can't make it available here like that, but I intend to send the whole project for well known users in the forum.