justifun's Forum Posts

  • rexrainbow - Can you explain how adjusting those parameters will change how the objects react?

    I understand "attracting/detracting magnitute - the strength that the objects gets pulled towards or away from the source object, but what does Attracting/Detracting Declined mean?

    thx

  • Awesome plugin rex as usual.

    Question: In the "crowd" demo for example, sometimes the little boxes wiggle really quickly instead of following a smooth arc. Which of the settings would i need to play with to smooth our their movement? I'm not sure what the parts of the equation mean in relationship to how they move.

    thanks

  • Let's say I have a object with several other objects pinned to it. And those child objects are also all pinned to more objects. Is there a way to pick all objects below the hierarchy of the parent object?

    Thx

  • I just did something similar like this, its really quite simple.

    For your ship. in the sprite editor add image points all over the ship where things can attach.

    Next lets create a dummy sprite that will show up at wherever these attachment points are while the mouse is held down.

    Mouse Event (On mouse down AND is touching ship addon part: eg: "lasers")

    (Local variable - ShipAttachPoints

    System For Each "Ship" -> Set ShipAttachPoints = Ship.ImagePointCount

    (sub event) - For "y" from 1 to CountAttachPoints -> Create Object "Attachpoint" at Ship.ImagepointX(loopindex), Ship.ImagepointY(loopindex)

    Pin Attachpoint to Ship

    This will create attachpoint objects all over your ship at each imagepoint and pin it so that they follow your ship.

    Next you need to check how far away the selected piece is to the closest ship attach point, and upon mouse release, snap the pieces together and pin the piece to the attachpoint.

    On Mouse Release

    Pick Nearest (attach point) (from attachpoint to mouse position)

    (subevent) compare 2 values (distance(attachpoint.x attachpoint.y, mouse.x, mouse.y) < 10 pixels

    subevent -> set position and angle of ship piece to attachpoint.

    voila. The piece will snap to the closest attachment point when you release the mouse.

  • Keep up the good work Some people just have to wait to be patient. Release it when you feel you are at a good stage where you need feedback from us. Everyone who purchased it should have understood that it was a work in progress, or waited until it was complete to buy it. Its so cheap anyways, I don't understand why people are so upset.

    Looking forward to playing with it some more once it develops more.

    Please don't stress over people complaining about not realizing what they purchased before buying it.

  • Yeah you only need to "pin" once. then the objects are stuck together until you "unpin"

    And i think littlestain meant to say use "position" only i think is the correct term while pinning

  • (Event)system for each enemy

    (Sub Event) system compare two values: distance(player.x,player.y,enemy.x,enemy.y)<100

    (Same Sub Event - Add a second condition) system trigger once -> Action-- enemy set animation

  • You can test for a collision at an offset. User the "Is overlapping at offset" expression

  • 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