maxwell88's Recent Forum Activity

  • If you are talking about sample capx from this page, just replace "Browser Log" with "Text set text"

    ok i have this, but why text object shows me

    ''4.05.2015, 00:00:00: 0''

    and nothing happen

    just display this date only?

  • maxwell88

    Capx example displays everything in Browser's console log. Press F12 in the browser, you'll see.

    As I understand, you need to do this:

    Every time your game starts, load Timestamp from local storage. Paste today's date, save timestamp to local storage (AsJSON).

    To get the number of days in a row your app was played, use DateInARow.ContinuousCount( ) expression.

    What i should put in 'set text' in text object? to display in layout?

  • Check out the Time Away plugin:

    You can use it to check how long the app was inactive and award a number of points depending on this time.

    i dont understand 'date in a row'

    capx example dont display anything

  • hi i try put new code to display timer : floor((gift_time_remaining) / 3600) & ":" & zeropad(int((gift_time_remaining)/60 % 60), 2)

    but text shows me always 0:00 ?

  • I'm not sure that is possible, what's your goal?

    its adding score when you dont play, ( but when you play you have possibility to gain more score)

  • How count and add/ substract one point to/from global variable when my app is turned off?

  • For example you want to add bonus score to player depending on how accurate the shot was.

    You can do something like this:

    Add Lerp(minBonus, maxBonus, accuracy)  to TotalScore[/code:oou65wqp]
    
    accuracy should be from 0 to 1
    

    i dont get it, con you show this in capx example? or printscreen of code ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, i make simple aser pointer using sprite and pin that laser to image point of gun

    https://www.dropbox.com/s/jkzjckv3b4rft ... g.png?dl=0

    How do i stop laser on solid wall/enemy?

  • After installation addons .c2addon where i can find this files in construct 2 main folder?

  • Hello, im wondering when i add to my game, window with video (YT, vimeo or other? i dont know which is better)

    how can i avoid right clik and copy url adress ??

  • From the manual, there is an expression to get the size in pixels of the text.

    [quote:3ljppwc6]

    set text to "my text"

    wait 0.1

    set text object width to expression get text width

    works good BUT

  • on image you see, part of characters are moved to down because size of text object is 250.

    how do i event to resize width to ammount of typed characters?

maxwell88's avatar

maxwell88

Member since 4 May, 2015

None one is following maxwell88 yet!

Trophy Case

  • 9-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
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

14/44
How to earn trophies