justifun's Forum Posts

  • I found the solution

    The expression with Rex's plugin is date.day

    It will return a number 0 through 6

    0 is Sunday

    1 is Monday

    2 is Tuesday etc....

    So the weekends are 0 and 6

    Yay!

  • Hi Rexrainbow

    I'm trying to use your plugin to determine if a current day is on a weekend or a weekday. I came across this example that's done in php talking about unixTimestamps etc like your plugin supports, but im not sure how to translate it into construct 2

    http://stackoverflow.com/questions/9553 ... or-weekend

    Is there a simple way to determine if its a weekend or weekday with your plugin?

    thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a easy way i can determine if its a weekday vs weekend? I'm using rex's handy plugin http://c2rexplugins.weebly.com/rex_date.html to get the date easily,

    But just not sure if there's a nice easy way to determine the weekday vs weekend thing.

  • Great work! Looking forward to upcoming videos.

  • Anyone out there working with larger clients like Disney/Nickelodeon etc?

    Just wondering if those types companies are familiar with C2 and its capabilities.

  • I can't get the video object to play a video on the mobile preview on lan. It works fine on the host computer, but not on my mobile during a preview on lan. its just blank

  • Thanks EncryptedCow!!!!! This is exactly what i was trying to do, but i suck at math

    Is there a way to display the "change" value to always be 3 digits? eg: 2.00, 1.50, 0.25 etc.

    Zeropad seems to only add zeros the beginning of a number, and the formula i found for rounding off decimal places (str(int(balance))&zeropad(int(balance*100)%100, 2) seems to strip the zeros on the end.

  • I'd like it to be able to round to quarter increments, eg: 1.25, 1.5, 1.75

  • Hrmm, doesn't seem to be working,

    here's the capx i made.

    https://db.tt/l6r74XHk

  • > For the statement of UDK / Unity3D have a 3D Modeler, its not that true.

    >

    Who stated that?

    There's some basic level building plugins and other character morphing plugins, but yeah to make a full on 3D character you are going to need to build it in a 3D package and import it into C2/Q3D.

    unless you want to build a object like the tiny tank out of primitives.

  • I would like to figure out how to add increments to a value while dragging.

    1) Record the Y position of where a user starts dragging the mouse.

    2) As the user drags upwards, i want to keep track of a value, and every 20 pixels , it adds .25 to that value, and as they drag downwards, it subtracts .25

    3) when you let go, it records that difference and adds/subtracts from the current value of that item.

    Imagine you had a project button with an amount of hours you've spent working on it. as you drag upwards you would be adding time to that project, and down would subtract time until you release the button, in .25 increments.

  • Ubivis - that model you linked has very poorly laid out UV's and its also a multi part model that would require some putting back together within either a 3D app or parenting stuff in the Q3D plugin to get looking properly.

    So that's probably why you are seeing strange textures when you import it.

  • and to save file space etc, instead of using 2 seperate idle animations, simply mirror the exiting player sprite.

    so use mouse.x < player.x -> set mirrored = true

    mouse.x > player.x -> set mirrored = false

    this will mirror all animations, not just the one idle as well

  • Yeah some tutorials from people who have their head wrapped around it would be awesome.

    Ideally i'd love to learn more about

    how to trigger events when 2 3D objects interact with each other

    how to link 2D elements and 3D elements together

    how to use some more of the built in construct behaviors with 3D objects