LuckyRawat's Forum Posts

  • my all logics are done for word search game except lines to highlight words. specially diagonal lines.

    I have created grid 10x10. touch start for first box and while is touching box calculating distance and angle. angle snap to 45 degree. my lines are not perfectly working

    I want to apply those lines similar to this game.

    myfile

    Tagged:

  • ok then I'll simply wait for the update when restriction will be removed.

  • yup I don't know programming.

  • apart from this bug, let’s say if this bug is fixed and I am able to add and play multiple games in this app, then is there a way so that I can pass a value from main app to these games? like sound, theme etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • in few tries I was able to play single c3 game inside c3 project. adding more games to file causing errors as you can see in bellow screenshots

    files are not showing in game2 and game3 folder inside project file

    files are there as we can see in windows folder view.

    I'm attaching whole project file (minimal version).

    TestApp

  • nope it showing construct web page

  • Ashley in that case where to place other games in app project? I want all games offline playable. So I don't want to upload them on servers. they will available directly inside game.

  • I want single app (apk) to upload on playstore. in the app I will display & play multiple games.

  • I want to make an App in c3 where I want to showcase and play multiple games I have made in c3. also I want to buttons like, sound, theme etc button in that app which will also reflect changes in the games.

    is this possible in Construct 3?

  • its doesn't happens always and happens randomly. I have observed most of the time when I preview game first time after opening project.

    the issue is when I preview project then editor gets locked which means editor becomes unclickable. clicks are disabled. I can't scroll editor, can't switch tabs in editor (layouts, eventsheet). can't click any property or anywhere.

    there are 2 ways to make editor clickable again. when I reload preview window or when I open and close developer tools. I have to open developer tools manually by going browsers 3 dots of setting > more tools > developer tools. because shortcut also not works.

    I don't know how to post this in bug forum as I don't have steps to reproduce this bug and It nevr happnes always.

    Ashley

  • R0J0hound I got 1 issue. in your example file. set viewport to 1260 x 720 and set variable path value to 841,141,812,171,783,202,754,232,725,263,696,293,668,324,639,354,610,385,581,415,552,446,523,476,494,507,465,537,436,568

    and preview it. that blue sprite should be positioned to first p but its on the 13th.

    just change path value to default value you set. and then start set position to first p object.

    what's wrong here?

  • R0J0hound there are more than 2 p.counts. its 15. I did check debug with breakpoint and I come to know that when I create all p objects. all objects were created but when I select any p object in debeug then it doesn't show its property. it showing current running loop. when all p objects are created then action for Sprite (t) and its position is set to NaN after that I can see p's property.

    and somehow if things work fine then Sprite's default position is not the first p's position.

    first time n sets -1

    Edit:

    I noticed why this issue occure. I put entire code under a variable comparision. and trigger once instead of start of layout.

    Why it causing issue putting under a variable camparision. do you know?

  • R0J0hound I used a new object for this purpose. So instead of creating all path I'm creating only specific path which will be used. Now one issue comes here.

    clamp(((self.X-p(self.n).x)*(p(self.n+1).x-p(self.n).x)+(self.y-p(self.n).y)*(p(self.n+1).y-p(self.n).y))/((p(self.n+1).x-p(self.n).x)^2+(p(self.n+1).y-p(self.n).y)^2),0,1)
    

    this returns NaN to me, I did copy exact code from example file.

    instead of creating object start of the layout, I'm creating on triggered once.

    I did debug this code and here is the screenshot

  • R0J0hound

    yes, that what I was trying to do, my method was not working at the end. in your example.

    clamp(((self.X-p(self.n).x)*(p(self.n+1).x-p(self.n).x)+(self.y-p(self.n).y)*(p(self.n+1).y-p(self.n).y))/((p(self.n+1).x-p(self.n).x)^2+(p(self.n+1).y-p(self.n).y)^2),0,1)

    I have multiple path and all those paths are already created on runtime. by default it picks object 'p' which was first created.

    I have set variable on 'p' by comparing which I want to choose which path to be picked.

    How can I pick a spesific path to use?

  • I fixed above issue by adding min,max

    -> System: Set d to clamp(distance(ax,ay,clamp(Touch.X,min(bx,ax),max(ax,bx)),clamp(Touch.Y,min(ay,by),max(ay,by))),0,distance(ax,ay,bx,by))