Zathan's Recent Forum Activity

  • Here, look at this capx:

    [attachment=0:28pn47nj][/attachment:28pn47nj]

    Input a number (0-640) into the text field and hit ENTER. The object will move to those values (on it's horizontal axis). The trail is just for cosmetic purposes

    Perfect!

    Thank you very much, dude

  • Tell me what you wish to do when the key is pressed. Move an object from point A to point B? Also, please verify, is the key press a trigger that it fires just once, or you will have to hold the key pressed in order to complete the lerp action?

    I want to trigger just once... the object must move smooth from point A to B.

  • Can you be more specific? The lerp takes 3 values, one as a starting value, an other as an ending value and a third one that determines how much in-between of these two values you will get.

    For example: lerp(10, 20, 0) is 10, lerp(10, 20, 1) is 20 and lerp(10, 20, 0.5) is 15. That is of course when you trigger it once. If you triggering the lerp every tick (as when a key is pressed down), you will gradually get the second value and the speed by which it'll get there is determined by the third value. A lerp(10, 20. 0.01) will have a slow transition towards 20, while a lerp(10, 20. 0.9) will reach 20 almost instantly.

    Of course there are other ways to move stuff around. Have a look to the moveto behavior () and to the Litetween/EaseTween behaviors (https://www.scirra.com/forum/viewtopic.php?t=70700&start=0). These are very useful tools!

    And here, in this example you can test the lerp speed in action. Use the mouse wheel to increase/decrease the 3rd value which determines the speed of the lerp.

    Awesome example, dude

    But I want a way to use the lerp whit 'on key pressed' for example... with a trigger, u know?

    How can I achieve that?

    Thanks

    edit: preferably, I want do this without plugins.. that's why the lerp question.

  • Like when a key is pressed. Thanks

  • Hey guys,

    So I'm working on a traditional point n' click adventure game. I have set up a inventory bar that the user can slide down to reveal the inventory items and I would like it to autohide when it's not being touched after a some seconds.

    For some reason, the way I have it set up now, it only waits the first time I pull it down. Every time after the first one, it just automatically hides as soon as I reveal it. This is what the event looks like right now:

    Any ideas on what I'm doing wrong?

    Thanks!

    How can I use that lerp expression to make an object go from point A to B smooth?

  • Here' a good way to get started:

    A simple solution to get started is to download pode html plugin here:

    Install the plugin into C2 then you can use leadbolt for ads, sign up here:

    http://www.leadbolt.com/

    then read the following tutorial here:

    https://www.scirra.com/tutorials/740/how-to-monetize-your-appgame

    You can also search tutorials section on ads and monetization for more advanced solutions.

    Leadbolt can be used with crosswalk? fi doesn't, what's the best alternative?

    Thanks men, and believe i have been reading for almost a week, i have pretty hard times because of my english and most of the documentation of other sites like google play they always talk as i am developing on their native sdk, so that's why i am asking if someone already been to that process and give and idea to where i should be looking that will be friendly with contruct 2.

    i was looking forward to use clay.io for cross platform achievements and leaderboards i ask to them if a really could use their payment api for iap in all platform or google play will take my app out for not using their google wallet, but i havent got an answer of them. but also read a lot of bad things about cocoonjs performance and that doesnt work pretty well with clay.io

    I'm on the same boat.. lol

    I really like clay.io, but players don't like the need for create an account for play a simple game...

  • i now have the web app tester and all my games look normal played in it, damn i dont know whats going wrong

    Can you please send me that web app tester?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Easiest to implement all these would probably be CocoonJS currently. Outside fo that Clay.io may work but I am not sure.

    I would like to use cocoon, but I read that is full of bugs and incompatibilities..

    and about clay.io.. i'm using now. to use it in google play, I need to export with crosswalk?

  • In my game I need ads and leaderboards. Achievements would be awesome too, but not required.

    How do I "export" to android achieving all this?

    *The 'easiest' way*

  • Hello Zathan, first of all thanks for your help... im trying to add that event on the System menu but i can not see that option.

    Is there any step I should do before to get working with the solution you propose?

    System

    Compare two values

    "First value" box: 'yourcharacter.Platform.VectorX'

    "Comparison" box: 'Less than' and then 'Greater than'

    "Second value" box: 0

    Before this, delete the old "character turning" action.

    Any difficulties, send me your .capx. I'll fix to you.

  • taymline

    Try this:

    Any questions, just ask.

  • Great thread henriquesv <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    CocoonJS is pretty much only for mobile. There is currently no supported method for admob in crosswalk though they are looking into it. For now some have had success with leadbolt on crosswalk using podes html5 iframe plugin.

    https://www.scirra.com/tutorials/876/ho ... orted-game

    I found this tutorial... is good?

    And what about that new Google Play plugin?

Zathan's avatar

Zathan

Member since 1 Jul, 2012

None one is following Zathan yet!

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies