udain1286's Recent Forum Activity

  • now i tried instead of changing the layer when the object is dropped to when the dragging is started then itself i have changed the layer and rest of the commands i have kept at the object drop event, and now it works perfectly.

    thank you everyone for helping, i think the change in the global field also helped, thank you.

  • When you select the buttons on the properties bar have you set them to global in the operating layer? Probably a given but still may be missed.

    this i did not know, that i have to set it to yes, but after doing so, i still have the problem as the car moves out of the initial window size, the buttons are again teleported inside the window size, instead of stopping at the dropped place on another layer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In my opinion you should look for other solutions, don't just stuck to one solution, there may be other ways.

    Reason dropped item changes its position is related to layer change of course.

    I have never use drag-drop feature but, did you try something like these;

    You can try having a global variable for it, like when mouse over item it changes to 1 or when you drag an item it changes to 1 i don't know. And you can drag items only when that variable is 1.

    Just don't change layers it will be a problem, if different layers have different parallax, items will change position whenever they change layer, they even get out of the screen, i suggest you find another solution.

    the reason why i am shifting the layer is because if i make it stay at the same layer it stops at its position but as the screen keeps moving, it also moves ahead because its in a parallax layer.

    and the variable option you gave, is something like i am using when icon dropped, disable drag and drop for 5 seconds then destroy it and then enable drag and drop again by spawning it at a location at the parallax layer.

    but my main problem is still there, i want the icon to stop dead at a place, if anyone has an idea, please help.

    thank you!

  • It is a side scrolling game where the player has to drag and drop buttons to maneuver the player.

    I am using a parallax layer with drag and drop buttons on it.

    Whenever the button is dropped i change its layer to another layer so that it does not move with the parallax layer.

    Whenever i drop the buttons, they automatically go back inside the main window size, but i want it to stay wherever they are dropped.

    My window size is 1920x1080 and the layout size is 6000x1080.

    How do i make them stop wherever they are dropped.

    Thank You.

  • It is a side scrolling game where the player has to drag and drop buttons to maneuver the player.

    I am using a parallax layer with drag and drop buttons on it.

    Whenever the button is dropped i change its layer to another layer so that it does not move with the parallax layer.

    Whenever i drop the buttons, they automatically go back inside the main window size, but i want it to stay wherever they are dropped.

    My window size is 1920x1080 and the layout size is 6000x1080.

    How do i make them stop wherever they are dropped.

    Thank You.

  • I looked into the Audio Analyser file, but did not understand much. I will look into it latter on.

    Thanks a lot, i did not know about that file.

  • I wanted to create a game where obstacles come according to the beats of a music track and the user can use his own tracks, because i dont have any licence for music tracks.

    Will it be possible in Construct 2 and how ?

  • Version is beta release r148

  • Link to .capx file (required!):

    dropbox.com/s/8oonw4y77uzz5q4/Construct%202%20r148%20Bug%20Report.capx

    Steps to reproduce:

    1. open the file

    Observed result:

    Error bugs dialogue box pops up, 3-4 times.

    Expected result:

    Clicked on Ignore on all the reports and my file started normally.

    Browsers affected:

    Chrome: no

    Firefox: no

    Internet Explorer: no

  • you can set a global variable for mouseover and then a button click for your building and set the global variable to 1. and when ever its set to 1 by using cursor is over building and inverting it you can change the type of cursors by setting them from sprite and also setting that sprite's x, y coordinate to the mouse and choose another mouse button like the right button when ever clicked it changes back the mouse cursor to the usual one you have along with setting the building cursor to lout of layout or something. i hope it helped you, otherwise i can send you a little demonstration with the help of a construct file..there might be other simple ways to do it but i figured this out for my own game..

  • actually i started with using variables for every weapon and for each player separately but then i divided them by one for each category..but i am still not clear on arrays and specially functions..as how to use them in construct...i am looking at some tutorials and lets hope i can lower the number of variables and events..

  • thank you for all the replies...i am working on a new system so that we can minimize the total number of events with the help of functions and i wanted to ask one more thing..that we have around 100 global variables and will be adding more, so is it okay to have so many global variables or not ?

udain1286's avatar

udain1286

Member since 26 Nov, 2012

None one is following udain1286 yet!

Connect with udain1286

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies