HenryPK's Recent Forum Activity

  • Thank You HenryPK,

    exactly I do that but I want the spawned object to stop on mouse cross hair I click on screen... the bullet behaviour make spawned object move out the layout can you find a way to do that

    great thanks for your help.

    Oh, you can make it like this with 3 objects (The Mouse, the Sprite, and a "target" invisible(or not) object):

    On "Mouse" Click >>

    - Set "Target" position to (Mouse.X, Mouse.Y)

    When you click, it will bring the target to the mouse position.

    "Target" Is On Screen >>

    - "Sprite" set Bullet angle of motion to:" angle (Sprite.x,Sprite.y,Target.x,Target.y)

    If there's a target on screen, will move towards it

    Else (Target Is not on screen) >>

    - "Sprite" set Speed to 0

    Won't move if there is no target onscreen

    "Sprite" on collison with "Target" >>

    - "Target" set position to "-Target.Width,-Target.Height)"

    This will make the target go off screen when the Sprite reaches its destination.

  • No. I already tested it, and the game continues to "work" on Scirra Arcade as well.

    The problem is that you can't move or give any inputs and have that text.

    However, I don't think we can remove that black screen and "Click here to refocus game" text because this is a Scirra Arcade thing, so you can "leave" the game and do other things, and then go back to the game. :/

    (But if you want the game not to lose focus, you can use a Javascript event or a Browser >> request focus in an Every Tick loop)

  • Maybe you could use a percentage bar:

    progress = (n / 100,000) * 100

    (In this case, if you loaded 50,000 tiles, progress is 50%)

    You could use percentage to make a Progress Bar... There are a lot of tutorials on these bars around there. But is as simple as setting the width of the Fill part to the: Maximum_Width / 100 * progress

    Hope I helped you.

  • If I got it right... you want the game not to pause when you aren't with the browser focused.

    Just go to your project properties, and set Configuration Settings >> Pause on Unfocus to false.

  • Hi ismailsawan... there are many ways you can do it, but there is the "easiest"

    If you want it to walk into the crosshair (cursor) you can use a Bullet Behavior, and constantly change its angle of motion to "angle(Sprite.x,Sprite.Y,Mouse.X,Mouse.Y)".

  • 99Instances2Go! Very thank you~! It's a bit complicated p-p, but I'll get it right... ;P

  • Hello, my dear developer friends... The problem is that I have two families (Triggers and Receivers)

    Triggers have 2 instance variables: Activated and WID

    Receivers, also have 2 instance variables: Triggered and RID

    What I want is when a Trigger has Activated=true, the Receiver that has the RID equal to the trigger's WID will be triggered. Some type of link. The problem is that picking, by comparison, doesn't work quite well... How can I do it...?

  • Thank you gumshoe2029! it kinda helped... the problem is that i need to detect the extra text,

    i need to know when the text is over the limit of rows calculating the size of one row and then multiplying by the row limit (that i already did with the TextHeight), and then continue the dialog showing the extra text (that i can't detect) on another window... Like, if i wanted to input the text:

    "Hello, i am a goblin

    and i love fighting so

    much that i could give

    all my money...!"

    the three first lines would fix on the dialog box, that is 3 rows tall...

    but i need now show the extra text: "all my money...!" separated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • second link isn't working.

  • thanks it helped

  • The title explains everything. The problem is that i have an dialog-box and the text can go greater than the dialog box. I need to detect when the text reaches the limit of text, to split it.

    Hope you help me this is my first post.

  • Construct2 have a event called "Load Sprite from URL"... Try using the "file://" or the DISK url with a OPEN FILE DIALOG, if possible. You probably can do it with JAVASCRIPT, because construct2 suports using javascript too.

HenryPK's avatar

HenryPK

Member since 5 Aug, 2016

None one is following HenryPK yet!

Connect with HenryPK

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies