Polpoy's Forum Posts

  • LevelUpJordan

    1) Simple but fun. Good start. It remembers me Joust, same gameplay. Play it if you don't know, very funny game.

    2) dunno, I didn't see big differences

    3) Xbox 360 pad, no problem

    4) Very good, but I have a powerful computer (i7 3770k, 16Go RAM...)

    ps: windows 7

  • pirx

    Hi. It's not perfect but you can do a thing like this:

    Global number wHeight=0

    Golbal number wWidth=0

    System|On start of layout

        set wHeight to WindowHeight

        set wWidth to WindowWidth

    Browser|On resized

        Execute javascript "window.rezizeTo(" & wWidth & ", " & wHeight & ");"

    (or System|Every tick

            Execute javascript "window.onresize = function(){

                window.resizeTo(" & wWidth & "," & wHeight & ");

            };")

    And if you set the project's properties with Scale inner or Letterbox scale, you can't see objects outside the scope. I think it's a good solution.

    I don't know if there is a better option to do that, but it will be a good feature if not.

  • Wooooo impressive effect! Congrats!

    Would love to see how to do that! :)

    +1

  • edit:

    For dynamic number of spawn points, I think you can use Pick by unique ID.

    So no need to use a spanwpointcount variable. When the player selects spawn point, set global variable spawnpointselected to the spawn point uid.

  • Maybe you can use one global variable "spawnPointSelected" (for example), instead of boolean for each spawn point.

    So when the player selects a spawn point, set spawnPointSelected with its name (or id, or number). And to spawn an object, use this variable to choose the good spawn point.

    if spawnPointSelected = A, spawn object to point A

    if spawnPointSelected = B, spawn object to point B

    ...

    So you have only one active spawn point.

    I hope it's helpful.

    Oops too late !

  • So you have 4 global objects, 3 Buttons and 1 Background.

    Create them on the new Layout and get them in one container.

    So in your event sheet you just have 1 action:

    -> Set position background (0, 0) Layer HUD!!!

    Set position background or System create background ?

    And how to position all the other container's elements ? If you have 20 or more elements, do you have to do Set position for each ? I can't find a better method. <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Impressive, very nice ! good job.

  • "Browser : Close" works for me too (on win7)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks roberto, nice software.

    There is Spriter too.

  • edit: mistake

  • I'm not a math expert, so I think my expression is not so good, but you can try this. Find a X coordinate, then Y according to X:

    Add a global variable ("randX").

    Condition: System -> Every X seconds ->

       Action: Set randX to random(0,LayoutWidth)

       Action: System -> Create object -> Monster, layer 1, randX, randX<ViewportLeft(0) | randX>ViewportRight(0) ? random(0,LayoutHeight) : choose( random(0,round(ViewportTop(0))), random(round(ViewportBottom(0)),LayoutHeight) ).

    You may have to adjust viewport layer numbers, and rounds.

    Look at the manual for more details (expressions, system expressions)

  • I'm not sure it's the best method but you can do a thing like this:

    Add a global variable (called "timer" for example).

    Add en event: Every tick and transform variable = 1, add value dt (not set!) to "timer". Why ? Because sum of dt = 1 every second (deltatime tuto).

    So if you want to stop transformation after X seconds, check every tick if "timer" >= X. If true, set transform variable to 0.

    or maybe this, better and simpler but dunno if it works:

    when transform variable is set to 1, add two other actions : wait X seconds, and set transform to 0.

    edit:

    it works ! find here a very simple example:

    .capx

    T to transform, Space bar to fire.

  • Short version:

    You can use sprite's animations and variable.

    Edit your sprite, add another animation (with some Fire Mario frames).

    In event sheet, when transform is on, set your sprite's animation to the good one. Then set a sprite's variable to 1 if needed to detect the transform.

    If press fire button and this variable is 1 ==> launch fireball !

  • same question

  • Layer's properties are also important. Force own texture to Yes. You can create mask and combined with canvas plugin, you can do really good things.