luckyrawatlucky's Forum Posts

  • First I will try to make

    If I fail

    then you can make it

  • Invert is a toggle. It is 1 or 0. Invert or not inverted.

    Since 50% inverted does not exist (yes it does in your mind, that is why your mind is so beatyfull) there is no tweening possible.

    You can ofcourse dissolve from not-inverted-state to inverted-state. But even that can not force the inbetween steps to make any sense. Then again, if no inbetween step can ever make sense, we can just feed something nice to the eye. In video i would probaly go for a dissolve that blends in a linear color space, or a soft circulair wipe.

    This is an example of just dissolving from one state to the other.

    https://www.dropbox.com/s/n7bpvdgvario9 ... .capx?dl=0

    Hope at least you have something at the way how i use a timer.

    Greetings.

    Thanks your example is awesome

    Its being 1 hour but i did not get what you have done with background, when i am moving it in layout to out of layout its showing black and in layout its showing as white. It makes me confuse because their is no effect on that sprite but how its showing black.

    and can you explain me how this lerp is working

    lerp(100,0,Sprite.Timer.CurrentTime("steps")/second)

    Edited

    one thing more

    i had take 3 seconds just for example

    actually I want to stay for some time in both inverse position

    It will take 10 s or 15 seconds

    first 2or3 seconds to invert then let stay for 10 seconds then invert 2or3 seconds then again stay

    i have found you make 2 layers you positioned object just behind them in other layout

    but in my game objects are not still every second they are creating randomly and moving

    so I don't think this will work in that case

    or it may possible if created in same position just behind the layer I don't have any way of doing this

    May be I have to remove this feature

    Actually I have done this with invert effect already invert is happening

    why i am doing this ?? My purpose is

    I want to make game a little size in mb 5-8 mb

    for that I will build apk without using Crosswalk for android

    but If I use WebGl effect its doing game slow (I have tested)

    If i build apk using crosswalk then my game will be 30mb

    that is the reason I am doing this

    I have game ideas

    some are small Projects some are big Projects based on Single Tap game

    Big Project is having combination features of Subway Surfer & Candy Crush ( I have in my mind)

    But I don't have ability to make them possible

    I am wishing to make a big project but have no ability

    So I am trying little games

  • No No No

    I was not doing 50% invert

    i was trying to down opacity 0%

    or when opacity is 0% i was trying to do trick here, i was changing frame

    but my math is not strong

    my other big problem is

    its being 1 year, i am using Construct 2 but still I did not notice most of features in C2

    like time feature I have noticed this when you use this in capx.

    I know only that portion of Construct 2 which i have used in my previous game

    Actually when I started Construct 2 or I have zero knowledge of C2

    I have created a game in my mind and then I was moved to make it possible

    and from beginning I have started searching about how to make first part of my game, then second, then third so on

    i have learned everything what my game required and except that I don't know any thing in construct 2

    My first game is complete now. I have not noticed other feature in construct 2 and now when i got some new ideas of games and now again a beginner in construct 2

  • I am trying to make invert effect without using webgl effect

    So I have 2 Sprites

    1 as object & 2 as background

    each has 2 animation frame, 1 is black and 2 is white

    black & white colors only

    if BG black then object is white

    if bg is white then object is black

    this is my layout and objects in it

    >>>>>>>>

    So What I am trying to do is

    on every 3 second both opacity go down smoothly and when opacity is zero then animation frame change from 0 to 1 & 1 to 0 and opacity go up

    for smooth opacity i used lerp

    i made an extra object and every 3 second it position is y=50, & y = 300

    when y = 50 adding lerp

    when y = 300 subtracting lerp

    please take a look

    Please do help

    attached capx

  • Another topic on the exact same subject. Why no search before posting Lucky ?

    actually sometime i did not get exact wording i have to do search

    i was searching this like

    "toggle left right"

    "move left right with one touch"

  • Hi

    I am again here with one new question

    I have a track which has left & right

    (x = 100)= this is (L)

    (x = 200)=this is (R)

    (L) Left is 100 px

    (R) Right is 200 px

    Now I have 2 objects

    Circle & Square

    I am creating both randomly on track L & R

    on every random (1,3) second > create "Square" on Choose(L,R)

    on every random (1,1) second > create "Circle" on Choose(L,R)

    these are overlapping sometime

    I want that

    do not create both at a same time (their should a way for player to go ahead)

    do not create both at same position

    How can i achieve this result

  • OK OK OK

    Thanks now its working

    yes I was doing wrong

  • https://www.dropbox.com/s/ukjr6k6z3toqr ... .jpg?raw=1

    this is i have done

    and in debug mode

    "move" variable is changing on every click

    1,2, 1, 2, 1, 2, so on

    object moves only once

    left then right

    and then it stopps

    Your image link is wrong... you have linked to your actual dropbox account folder, so unless you want to give out your dropbox credentials so I can log in and see it, you need to link it properly.

    Now Links are updated

  • Hi try this,

    -On left click + Variable = 1 > set 2 to Variable

    - On left click + Variable = 2 > set 1 to Variable

    - Left lick down

    -+ If Variable = 1 > move left

    -+ if Variable = 2 > move right

    I have try this but its not working

    check screen

    https://www.dropbox.com/s/ygpv4lwbssd7l ... .jpg?raw=1

    This won't work either... it will set the variable to 1, then immediately to 2.

    -On left click + Variable = 1 > set 2 to Variable

    - ELSE > set 1 to Variable

    ^ That would work however.

    This also not worked

    but i tried my way which i already explained

    I have check in debug mode

    variable is changing on every click

    1,2,1,2,1,2, so on

    but movement is not happening

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to move object left and right in one click

    I have try this

    when variable is 1 and left click move object 100 pixel left

    when variable is 2 and left click move object 100 pixel Right

    on any click add 1 to variable

    when variable is greater than 2 set value 1

    it also not working

    please suggest me how to do this

  • I have also try with variable

    when variable is 1 and click on "L" move left

    when variable is 2 and click on "L" move Right

    on any click add 1 to variable

    when variable is greater than 2 set value 1

    it also not working

  • I do nat want "R" sprite to move right

    I want to move left and right with one sprite only

    I am trying to do

    click 'L' sprite on this file move left and again click 'L' Sprite this time move right

    I have used boolean here

    if click "L" boolean is true move left

    if click "L" boolean is false move right

    any click toggle boolean true n false

    but it never worked

    pls help

  • Hi 99Instances2Go

    Thank you

    Your example is so close achieving that result

    I made little change and now its looking gud for me

    in your capx car is rotating, i.e. if we move car to left then front portion moves left and back portion moves to right and then goes to left

    means first it rotate and then move

    i made little change >> I move car's origin to back -38 pixle

    and now its looking like moving not rotating

    .

    Thanks for help

    after a long time a get my answer

    thanks once again

  • help

  • No above is not what i need

    because above has some limitations

    it does not showing original colours of objects. Shadow is above objects.

    I want to use single Shadowlight, which gives dark outside glow