shoeb07's Forum Posts

  • Aliigames

    Global number GridSize is 32

    Sprite:DragDrop is dragging -> Sprite: Set position to (round(Sprite.X/GridSize)*GridSize, round(Sprite.Y/GridSize)*GridSize)

    Thanks man thats what i was looking for...

  • Yeah man. Should be easy.

    As long as you have the selected word appearing.

    The text box you click on to type can be reset.

    Set it to inactive when timed out, so you need to click it again before the typed words are acknowledged..

    Just need to start the timer when the text box is clicked.

    The word selection..... I have basic ideas. Like add individual words to the code with a random number selection to define what word appears.

    Ie if 1. Text =word

    If 2 text= true

    Ext

    Bit long winded. Plenty of easier ideas I just haven't trained with

    Without construct next to me I can't test. But there is a text comparison option, also option to ignore caps...... Use the manual or I will write tomorrow.

    As an interesting side note, you could use the text to speech to train people with a new language! Gd idea bro

    Hey, Thanks for the reply I got the capx file from scirra and over there it shows the coding and everything so it got much more easier for me and it helped me to learn about ajax and arrays but my new concern is i want this words to create every 5 seconds and if it is greater than 300 X with help of bullet behavior than it should destroy and also if first word is on screen we can only type that words and can't type the next one as it should be enabled after we completed the first one or after its destroyed

    This is the link i got the file from...

  • I think this tutorial will help you out

  • Hey,

    I want to make a game where words will load from the text file and we have to use keyboard to type the letters

    So the words will be coming randomly every 1 second so let's say hello came and we have to type hello but if we are typing letters for hello and if the second word generated and if that word let's say house so if we press H on key board it should only affect hello and once the hello is complete than another word should be enabled

    I know it should have array and ajax but I am very confused like how to set these things

    I am not so much pro in construct 2 and I didn't found any help on siccra for this

    Please help

  • Hey !

    1. I would suggest you use the "time" expression (check https://www.scirra.com/manual/126/system-expressions) instead of creating your own time counter. Also, there's a nice tutorial on displaying elapsed time, you should check it (https://www.scirra.com/tutorials/1374/h ... es-seconds).

    2. Accuracy is very simple. You create two variables (say, correctKeys and totalKeys). Every time a player hits a key, add 1 to totalKeys and, if the key is correct, also add 1 to correctKeys. When the level finishes, the accuracy (in %) will be correctKeys / totalKeys * 100.

    Hope this helps. Cheers!

    Hey thanks for the reply this helped me

  • Try Construct 3

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

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

    I am making a keyboard game i have the game ready but i am stuck in 2 things time taken so when a player reaches to last stage a game complete screen will came and there it will show the time taken i have added globle variable and over there i have made every 1 second add one to timer but i am not able to stop it once the player reaches the last stage

    another issue is i want a system which can calculate the accuracy the player had on typing i don't have any idea to make these two things work can anyone please help i am new to construct 2

    I am sorry if i am not much descriptive and thank you in advance

  • [quote:pf9t7un2]

    Kyatric wrote:

    Yes. See the attached capx, it's pretty straightforward.

    The only subtlety lies in the fact that the "On changed" trigger does not fire while you are dragging the bar (which is normal).

    Making it an "or" block and comparing the value with a stored "former" value helps with the issue.

    For the sake of forum readability could you, please, consider posting a more relevant/informative title for the topic.

    Thanks man it helped a lot...

  • Yes it's possible. You'd use something like -

    Sprite on clicked > Goto Layout (by name) > and then in the box use "Layout "&round(random(0,10))

    Or if you have changed your Layout names to something specific to your game, such as level names you could use the "choose" expression so:

    Sprite on clicked > Goto Layout (by name) > and then in the box use choose(emerald hills,underwater caverns,the end,the nether) this will randomly pick 1 value from the comma separated list.

    It just depends on how you have named your Layouts.

    hey thanks alot it works

  • i have lenovo k4 note and i have also tried on redmi note 3

  • hey,

    I am very new to construct 2 and i am learning that for few weeks now. I have created a app and tried to export it through cocoon and intel XDK also but when ever i intel the app it loads the Cocoon's/Intel XDK load screen and than b lank/black screen. I went through few tutorials also and did the same thing but still no luck. I have also run the debug in construct 2 but its not showing any errors to me.