LaroTaio's Forum Posts

  • Might be a stupid answer (im a very basic user), but you could try to use the UID of your enemies to make their shooting frequency look "random", try to use this maybe ?

    Enemy has Player in LOS

    --System : Every "EnemyUIDvalue+somethingrandom" => Spawn bullet

    What do you think ?

    I've got 10 enemies, what will I put on the UID value?

    I'm still a newbie as well, I tried your idea but it didn't work, would be nice if you can provide a screenshot or better yet a sample working capx.

  • How to randomize the shooting pattern for each enemy independently with line of site behavior?

    I noticed when the two enemies(copied from same object) has the line of site of the player the shooting pattern is the same or they shoot at the same time, is there a way that I can make each enemy to shoot bullets randomly with different time pattern?

    I even tried adding For Each Enemy on the event condition but the problem is, only one enemy is shooting one at a time until the player is out of site from one enemy before the other enemy starts to shoot.

  • Yes, finally got it working. thank you very much my friend!

  • Ok guy, I'm trying to create bullet object moving at 270 degrees on two image points. I'm been searching for info on the forum about spawning the same object on multiple image points, but haven't found any. So far these events I used work to spawn two bullets moving upward.

    As you can see in my event, I have to repeat it again for the image point 2/up2.

    Is it possible to have two or more image points for each X and Y coordinates so the event will only have one Bullet angle of motion?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • arthology

    Finally got it working, I thought of dividing the actual size of the window screen by two, but by 2 as you mentioned, silly me

    troublesum

    Thank you for helping out as well, but these sprites are movable, they are objects for level selection to be exact there are 20 rows and 4 columns about 80 levels.

  • arthology

    My windwo size is 640 by 480, I followed your instruction

    [quote:1co24sf5]You can align objects simply by right-clicking the object and find the "Center horizontal" or "Center vertical" options. You can also use system expressions like "WindowHeight", "WindowWidth", "LayoutWidth", or "LayoutHeight" and divide them by 2 in your object positions.

    then I copied the position of the object from the properties window and paste it on the system expression LayoutWidth and LayoutHeight, I also tested it on the WindowHeight and WindowWidth expression, still the object is positioned at the upper left corner.

  • LaroTaio Not sure what you mean.

    You can align objects simply by right-clicking the object and find the "Center horizontal" or "Center vertical" options. You can also use system expressions like "WindowHeight", "WindowWidth", "LayoutWidth", or "LayoutHeight" and divide them by 2 in your object positions.

    I mean is like with html, you have 3 images horizontally aligned, when you insert the center tag code, what ever the screen size of the browser it will keep the 3 images at the center. that sort of thing is what I want to happen. coz when I view my game on other android screen devices specially with large width screen, all are objects are placed on the left side of the screen. I want my entire layout objects positioned at the center.

  • Hi guys,

    I've got this objects on my level layout selection, like lock and unlocked, I've been figuring out how I can automatically position them in the center if it will be viewed by different mobile screen devices?

    Thank you in advance for the help.

  • Hello guys,

    Been looking for a solution on how to open a new window when I click a link inside the iframe, it keeps on opening the link on the same window/iframe, its like browsing inside it, I don't want this to happen. I already added the browser plug-in, there's a parameter there that open URL to new window, If I'm not mistaken, I still remember in HTML that you have to set something on the iFrame like a tag that every time you click a link inside the iframe it will open a new window. I'm just really confused on how to do this on C2.

    here's what I did on the code

    html_iframe>on clicked>Browser>Go to "http://example.com" in a new window ("my_iframe")

    Help very much appreciated, Thanks in advance

  • New prices are now in effect

    Hi Tom,

    I send a message to your support email but haven't got any reply yet. Plan of buying the license, I would like to know if is it possible to send payment thru Western Union?

  • [quote:mstsqam8]Is between values Test if a number is between two values (greater or equal to a lower value and less or equal to a higher value).

    Thanks Bratha

    Doing the health bar width condition took me about three days with no result. So after posting this question, I looked for another alternative, having not much experience with arrays, I analysed closely the sequence of the code, I'm pretty sure there is something I could play around with. So I started messing the values in the arrays, going back and forth with the 2 event sheets, testing on the preview browser, until I hit the jackpot. Finally, got it working, the solution is in the powerful arrays, also, I increased the value on start of stars, instead of adding stars on the global variable, now every-time the hero hits the poison it subtracts 1 from the global star variable as well as the width of health. Ouch! My brain still hurts.

  • How do I add a value to star global variable, using the WIDTH condition of Health Bar (Health1) instead of collision with star object?

    The width of my health bar is 300

    What I want to happen is if the width of the health bar is:

    300 add three stars to global variable

    150 to 200 add two stars to global variable

    100 to 150 add one star to global variable

    50 no star

    Any solution to this is very much appreciated.

    Thank you in advance...

  • scirra.com/forum/viewtopic.php

    Thanks bratha

  • How do I add an iframe to my layout?

    thanks

  • Hi guys,

    Just an update to this thread. I want to ask about the keyboard control I want to make it to touch.

    The toucher sprite is located in layer 1 below layer 0 where the player and pickups are located. The second condition below touch, I tested and set toucher sprite to Collision Enabled, Is on layer 1 and the third on I made it simpler -- Is touching. All three are working. But which one is appropriate, do I also have to add end touch condition? or you can suggest something better. This is too elementary I know, LOL, I just want to make sure I'm doing it right.

    Thanks........