LittleStain's Forum Posts

  • Have you tried the bullet-behaviour or the physics-behaviour?

    Without more information on what you want and what you have already working this question is hard to answer..

  • This plugin is one that no longer works

    com.cranberrygame.phonegap.plugin.ad.admob

    I saw a post from 21st of march this year, where someone followed that tutorial and made it work..

    Where did you find the information that "com.cranberrygame.phonegap.plugin.ad.admob" doesn't work anymore?

  • In these tutorials use a plugin that no longer exists , you may comprobra web of Cordova . Take more updated .

    These tutorials seem to use the build-in ad-mob plugin provided by Scirra..

    It exists in my version of construct 2..

    But well..

  • >

    > > i'm developping on mobile phone

    > > i just try every 0.017 set angle to self.angle+10*60*dt

    > > it's better than before ... but still some times lag

    > >

    >

    > Not sure why you'd use dt inside the "every x seconds"-event

    >

    i always use it like that

    is it bad ?

    Not sure if it has any effect, positive or negative, but seems illogical..

    Every x seconds is framerate independant as far as I can see, why re-add framerate to it?

    But then again, maybe it's one of those things outside of my knowledge..

  • i'm developping on mobile phone

    i just try every 0.017 set angle to self.angle+10*60*dt

    it's better than before ... but still some times lag

    Not sure why you'd use dt inside the "every x seconds"-event

  • should be as easy as

    • object1 on created

    > system create object2 at x= object1.x+200 ; y=object1.y

    200 should be changed to whatever distance you'd like..

  • Have you tried starting from scratch, following all directions and making sure you haven't skipped a step in the process?

    Like stated many times, people have made this work, so the issue is at your end..

    Tutorial 1

    Tutorial 2

  • Right-click event / choose add condition / add condition "is on ground"

  • > Edit..

    >

    > Ok..

    > Setting the position every tick will ofcourse overwrite the sine behaviour..

    >

    > I guess adding an

    >

    > -every tick

    > sprite4 move at angle(sprite4.x,sprite4.y,sprite2.x-100,sprite2.y-200)

    >

    > might get better results

    >

    > maybe adding an inverted system is between values condition to stop it when it's close enough

    >

    I cannot post links yet so please remove the space to access the working file. Can you show me how to make it work? Just want the bee to hoveraround and follow the chicke.

    https:// dropbox.com/s/lmhcjvb5fhjr66n/ProjectOne.capx?dl=0

    Unfortunately your project is using the platform+ plugin which I don't have, so I'm unable to open it..

  • I would put the 4 objects in a family

    If it's impossible to put the 4 objects in a family and use one event based on that

    you could add conditions to the else event or use an 'or' block

    -cursor is over sprite1

    or

    -cursor is over sprite2

    or

    -cursor is over sprite3

    or

    -cursor is over sprite4

    set cursor to hand

    -else

    set cursor to normal

    -cursor is over sprite1

    set cursor to hand

    -else

    -cursor is over sprite2

    set cursor to hand

    -else

    -cursor is over sprite3

    set cursor to hand

    -else

    -cursor is over sprite

    set cursor to hand

    -else

    set cursor to normal

  • Edit..

    Ok..

    Setting the position every tick will ofcourse overwrite the sine behaviour..

    I guess adding an

    -every tick

    sprite4 move at angle(sprite4.x,sprite4.y,sprite2.x-100,sprite2.y-200)

    might get better results

    maybe adding an inverted system is between values condition to stop it when it's close enough

  • Do you want something like this?

    Added a spawning event to your example to show the smooth line..

    Apdapted example

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Which part of making this game you have trouble with?

    What would you like help with?

  • Or you could add an else event below

  • Add a global variable rotation

    on space pressed

    system set rotation = 1-rotation

    system compare two values : rotation = 1

    sprite rotate clockwise

    system compare two values : rotation = 0

    sprite rotate counter clockwise

    You could ofcourse also do this by toggling a boolean instance variable..

    or using an instance variable as above..