farhanx's Forum Posts

  • I have question i have read by using Ajax i can use multiplayer games and on server side i can create Restful API webservices for such things. My question is , is there any other way we can make multiplayer game using TCP directly or any other technology in construct2???

  • sorry it was typo :it is Dialog not dialogue

    thanks for your reply will do that way.

  • I would like to know how can i calculate hold timing of an object , suppose if user hold any object and don't let it go then once he leave the object i see the exact time duration he has hold it. Maybe it's common question but i am unable to find the answer plus i am newbee in construct2...

  • hi,

    I am creating a dialog selection on the game , what is the best strategy with respect to memory consumption and performance in construct2 if i want a new dialog display over my layout like a popup dialog.

    a) Should i create a new layout for dialog and then call it somehow on my main layout and then display it with small width and height to show as a popup??

    b) Should i create a dialog using images with small width and height to adjust on the same main layout and hide it till i require it?

    Regards

  • hi,

    I am new to construct2 and I am trying to implement a swapping feature between a same sprites objects which i have duplicated on the layout. The sprite is a white box with dragdrop behavior , there are 5 duplicate white boxes which can only be drop on yellow boxes. Yellow boxes are like a place where white boxes can be drop rather than any place on the layout.

    Now suppose if a white box is already dropped and placed on yellow box but still user drop the second white box on the same place then i want to swap the positions of each other on yellow boxes. Problem is when i use this condition

    SpriteA is overlapping SpriteA

    SpriteA is overlapping SproteB

          Action: SpriteA: Set Position (SpriteB.X,SpriteB.Y)

    doing that it returns me back to the SpriteB rather than setting this sprite on the other duplicate object of SpriteB.

    In simple words i need to swap their positions if one them comes near while other is already on the place.

    Please check my sample for detail ,

    dl.dropboxusercontent.com/u/104183650/test%20for%20ripples.capx

  • Thanks everyone for contributing your experiences , i really appreciate that.

  • I am new to construct2 can you show me any example because previously i was using unique id but i was unable to select the object in expression. My logic was simple that each white box contain a unique id of bottom yellow boxes where they get adjust...

  • Thanks a lot , changing my logic from uid to IID worked fine. But why they dont display IID like UID through property sheet i had to display their numbers on run time to use it.

  • hi,

    I have three white boxes which contain an instance variable called "Slot". This variable contain the slot number which is actually a UID number of another sprite.

    there are 4 different duplicate sprite instances with unique UID and they represent the slot for white boxes. The problem is white boxes has to be adjusted after moving towards their slots...all white boxes moves to the slots but all adjusted their self to wrong slots...

    I am using set angler toward slot(Sprite.slot).X and slot(Sprite.slot).Y

    where slot is the sprite name, Sprite is the white box and Sprite.slot contain the unique UID for the slot.

    For detail please check my project file

    dl.dropboxusercontent.com/u/104183650/testmyfile.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • secondly overlapping is not useful in my condition because i need to check the exact background block on which finger of the user is touching suppose if overlap objects are more than one then high pirority to select the object should be the one that has the pointer or finger on. Please check my above files for more details.

  • but the same condition is working in other sample did you check that?

  • hi,

    I am using IS touch object under the DRAG-DROP function ...a user take some white tiles and drop it over the background blocks which are made of other sprite. Sprite it self is a single image of a brick and i am using its duplicate objects all over the layout.

    I made one sample using above and it works fine then i have copied the same solution in my real project and it didn't work. This is very strange problem and i have given several hours on this issue...i have checked side by side both project and i did not find any difference...then i have removed all the layers , objects and everything from my real project to make all things similar to the sample i made but still it didn't work.

    I am a very newbee and trying my luck using construct 2

    here is the working sample i made which works fine

    kindly check this if this is construct 2 issue?

    Regards

  • thanks alot Wertle , i didnt knew the i can select all instances using "PICK ALL" ...once again thanks

  • hi,

    I am new to construct2 ...

    I had import one sprite with the behavior of bullet and then made several duplicate sprite from the same sprite. On the layout startup i am moving those sprites from left to right and when any one of them come in the middle of the screen then i stop the movement by making the speed as 0.

    Problem is i want to stop these all duplicate instances on their same Axis if any one of them reach in the middle of screen but it is not working it overlap each other till they don't reach in the middle of screen. How can i control all duplicate instances using one of their instance action?

    regards