karthikraja34's Forum Posts

  • 13 posts
  • I tried making all sub events of fuction under else, it didnt work.

    Actual problem is function is not checking each event.Even if u don't understand what i have done see the below images u can see the basic logic i have done.

    capx file-

    bit.ly/1SqGo2v

    In the above image (the tile image) see the nxtblk , blkno and function bloc no ,now see the code fuction bloc 5's code is different.

  • I have nearly completed my project ,all logics were implemented but there are two bugs....

    Those two are very small bugs ,i couldn't solve them.So i hope u would help.

    bit.ly/1LRLC8e

    i have attached link for capx the bugs..

    1.function is not working (i.e only function works when it has less than 3 sub events...if sub event exceeds more than 3 it is not working properly)

    2.i cant set tht bullet behaviour within a box(all tiles moving outside when swiped in tht direction)

    for functions i tried many methods still it works only when it has two or three sub events

    and second problem i created a box and made it as solid ,but still tile moves outside it.

  • Bump

  • Hey oosyrag there is a logical mistake in the code u have written and i dont know how to chnge it...

    it was when a tile is swiped over another both the tiles should change into new color but the problem is after changing its original color the tap fuction is getting changed..

    for ex

    T1(0,1,2) T2( 3,4,5)

    T3(6,7,8) T4( 9,10,11)

    T-TILES

    consider the above four as frame numbers and if T2 is swiped towards T3 (active frame in T2 is 4 and in T4 is 11)

    afterwards the both are changing into new frame no (say 6).Now look below for new frames in tiles

    T1(0,1,2) T2(6,7,8)

    T3(6,7,8) T4(5,6,7)

    well the above frames are not accurate but the thing is they are changing.And the actua frame is to be

    T1(0,1,2) T2(3,6,4)

    T3(6,7,8) T4(9,10,6).

    how to do this?

    if by any chance can u pm me i can send image to explain this (p.s i m a new member cant send pm).

  • someone help me

  • I have made the changes u told....it still has two problem..

    1.Only two tiles are working

    2.How to set instant variable to starting frame number since each tile has to start with different frame numbers

    bit.ly/22nqdeF

    And my final doubt in this project is

    When the user swipes a tile over another( or towards another tile) both tiles should change into a diiferent frame. That is after tap gesture is implemented each tile will have four frames .so how to change frames of both tiles ( one which is swipinging and another which is target or swiped into).I think the above question will have a very long code ..so tell me a basic concept or code for one tile i can manage to do for others.

  • someone tell me a solution

  • I got another one week time to complete my project. I implemented swipe function but now i m struck.

    bit.ly/1R2TLDx

    the above link is the capx file.i have spawned four tiles using a single sprite and in each tile i displayed animation frame (0,3,6,9).

    i have totally 11 frames in tht sprite. when i tap the first tile it should change to next frame,on next tap on t1(tile 1) it should change to next frame but it shouldn't exceed frame 3...after frame it should start from frame 1...like that for tile 2 frames (should b 3,4,5) ;tile 3=(f 6,7,8);t4=(f 9,10,11)......how to do this ?

    i made a pseudo code but it not working..

    PSEUDO CODE

    on tap gesture on block |

    while(x<4) | block.color=block.color+1 //color is instance variable

    if(x>3) | block.color=block.color-3

    | x=0

    someone tell me how to make this pseudo code work

    and i have another doubt i will post it once i got this cleared ,at the same time i ll try to implement tht myself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks that helped me a lot

  • Thanks for your help...I tried the code you have written

    I have two doubts

    1.

    On touch release | Move TileSprite to OriginXVariable, OriginYVariable

    i couldnt use the above code...it shows only pixel values

    2.On the previous capx (included in above reply) i made four sprites and included 3 animation frames to each tiles

    and created four evens to make those tile change their color when tapped ....how to get these effect(to change only 3 different color on each tile in that square) by using single sprite (Tilesprite).

  • As i said i am a beginner so i dont know much about creating events...sorry for inconvinience,but i have to submit a project within a week so please bear with me ..i need just some hints or tips on complex functions ,i can see through web for common functions....

    The below link is the capx file

    bit.ly/1ntMMLs

    I want to change the first two tiles to green when the user drags first tile over second or second over first.

    how to do that ?

    P.S i can change both to green by using conditions but dont know how to make a smooth drag and dont cosider those numbers in the first pic(on my first post).

    NOTE : the word "drag" is not appropriate...it would be better if someone tells me how to use swipe from one tile to another.

  • someone please tell me solution

  • Hi guys,

    I am a begginer to construct 2 . In the below image there are 4 tiles.when i drag first tile over second tile ,the numbers in 1st and 2nd tile should be changed and also the colors..

    how to do this ? ...

    and next thing i want to know is

    when i tap a tile it should change both its numer and color..they sould be predefined ... i.e each tile has three set of number and colors and when the user taps it should change to second set ,when they tap for third time it should change into third set and if they tap for 4th time i should again change to 1t set...

    somebody please tell me how to do these things in construct

  • 13 posts