JohnnyBeGood's Forum Posts

  • Turn off the ball colission for a short time or use a different scoring system.

    If you score on collision then it will score every collision unless you turn off collisions.

    no other way to do this comes to mind?

  • in my game theres a ball bouncing and i want everytime i colide with the ball it bounces away and i get 1 point. did it like this. "me > on collision with > ball> value add 1 to score" but the problem is that somethimes i collide with the ball and push it away and meanwhile im pushing the ball the score goes crazy, like hundreds of points, because they are still in touch.

    how can i tell my game not to score hundred of points when i collide and collision is still happening but only 1 point?

    i dont want to put something like wait x seconds because sometimes it's not just a brief moment that i'm pushing the ball, and also e.g. if i got wait 0.5 seconds and i hit the ball after 0.3, i would not be givven that point

  • Set it to letterbox or Integer Scale and it will scale to whatever device it is played on.

    There is no one setting best for all devices but all newer devices scale any app automatically to fit their screen.

    how to?

  • how do i properly adjust my game resolution to every single one screen out there?

    i want my game to be seen equially in every mobile screen, not because you have a bigger inches or bigger resolution screen you'll be able to see the playscene from a bigger zoom out. so first i thought to make this...my game is portrait 800x1200 resolution. my windows view is 640x960. scrolled to 400x600 on layout start, so this way everyone will get a view on the center of the playscene, but then i realized it wasnt like this. am i wrong? if you have a bigger screen your window view wont be 640x960... right? it'll be bigger depending on your screen and resolution.

    how do i fix this? whats the most common mobile screen resolution out here?like i said i dont want poeple with better screens to get some advantage like seeing the playscene from a bigger zoom out so you can see more of the enviorment.

    i had a look to the example page on scirra and so i did what explained but now i got doubts.

  • So, you create them off screen. They move in view, and then they sneak off screen. The second time they go off screen, you want to destroy them.

    That, or the spawning has a flaw (well, that is a blemish in the spawning too).

    Your really need help ? Spawn your capx in a sharing site. Ty.

    i got it to work! thanks all!!!

  • I would need to see your capx to tell what you have going on.

    Hard to trouble shoot without that.

    its very simple. it's an enemy that spawns and starts moving forward, and once it is off the screen i need him to be destroyed and player loose a life

  • Sprite > is on screen (invert the condition by right clicking on it)

    ________Sprite > destroy

    still not spawning

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am not sure I am following you.

    You say you have several characters in your game. Is that a C2 project and are those C2 sprites?

    If they are C2 sprites you created in one game and you want to transfer them to a different game then you need to import them to a new sprite in the new game because sprites have a distinct UID in each game and behaviors associated with that UID.

    maybe i didnt express myself. i got those characters on png files...

  • Then the origin is not in the middle.

    now it wont get smaller. it just bumps

  • Yes you can click and drag a box around multiple sprites on the layout to select them all or hold CTRL and click each sprite to select multiple sprites.

    If you mean can you import many images to a sprite you do that in the sprite editor and right click on the animation frame box and click import images.

    i meant import multiple sprites at once. i have several characters to my game and i'd like to select them all and drop then in construct 2, each one as a character, not all as 1 character...

  • > How do I make my game scale by adapting to each screen and resolution? The problem is that in my game there are objects that when they touch a barrier that is hidden beyond the layout, are destroyed, and a life is lost. But I have the barrier outside the layout so it takes about 3 seconds from leaving the screen until it collides and the life is discounted. Is there any way to make it as soon as it leaves the frame of the screen you lose a life and destroy the object?

    > I also have problems with the loss of lives, I have brought the barrier in the window of sight to see when it crashed and destroyed the object but not lose a life. My event sheet is: sprite / on collision with "green" / subtract 1 from "life". And also I have a global variable "life: 3" assigned to a text box represented on the screen but what I say, no life is discounted ...

    >

    In the behaviors you can set any sprite to be destroyed off the layout.Then you don't need your boundaries.

    You can also do that in an event by checking if a sprite is outside the layout and destroying it.

    You need to set your life text to the variable you use for life without quotation marks to see the lives number.

    done. but now those objects are now spawning...

  • can i paste or drag and drop multiple images at once somehow?

  • done it. but now it moves when its size changes. moves like diagonally and keeps going further and further

  • How do I make my game scale by adapting to each screen and resolution? The problem is that in my game there are objects that when they touch a barrier that is hidden beyond the layout, are destroyed, and a life is lost. But I have the barrier outside the layout so it takes about 3 seconds from leaving the screen until it collides and the life is discounted. Is there any way to make it as soon as it leaves the frame of the screen you lose a life and destroy the object?

    I also have problems with the loss of lives, I have brought the barrier in the window of sight to see when it crashed and destroyed the object but not lose a life. My event sheet is: sprite / on collision with "green" / subtract 1 from "life". And also I have a global variable "life: 3" assigned to a text box represented on the screen but what I say, no life is discounted ...

  • i want an object in scene to reduce its scale every second. i used: every 1 second / set scale to "vida.height-5" but what i get as a result is a brief screenshot of the object at full scale (i think at the actual size of the object which is 400pixels x 400 pixels ) and then disappears, and repeats every 1 second until it completly stop after like 6 seconds. it's like it detects the virgin object and pastes it on screen.

    help