Grimmy's Recent Forum Activity

  • The answer is:

    anglelerp(Self.Orbit.Rotation,new_angle,lerp_speed)

    Although it would be nice to know how to do it with a tween so I can get more control over the easing.

  • I want a sprite to orbit another sprite by setting the orbit rotation (in orbit behaviour) every frame, but I want the orbiting sprite to smoothly ease to its new position. How do I do this?

    I have tried create a value tween in the update loop and then assigning that value every frame to the Orbit.Rotation value but that seems to make a bit of a mess.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The answer is to Tween the property Angle. (Add a tween behaviour) and use...

    angle(Self.X,Self.Y,Mouse.X,Mouse.Y)

    ..as the tween end value

  • I can use rotateToward to rotate the sprite to the position but I want it to ease in and ease out as I move the mouse. What's the recommended way?

    Cheers

  • Hi, I used the ProUI plugin on a previous game project. A great plugin but which sadly is now seemingly a dead plugin. However, with the rise of the C3 html element plugin and the scene graph, things have become slightly easier than before to create a UI . But for me I am still confused about best practices for UI.

    I have made games/apps with both pure html (for a yellow pages type app) and with the ProUI library in construct 3 (for a game), so I have experience in both, but I'm still not sure if the recommended approach for complex game UI would be raw C3 sprites or pure html...or a mix of the two? When I mean complex UI I mean something like an RPG with crafting/inventory screens etc.

    Personally I love the rigidity and organization of html but I find it difficult to be visual and creative when developing for it. Maybe there are some recommended tools that could help with this?

    I presume html would be the best approach, but if that is the case; are there any recommended workflows? Perhaps people use webflow and bring the code across or maybe there are other faster ways? Webflow looks good, but its pricey.

    Chat GPT does a fairly good job in getting you started, but in cant do any of the texturing/icons artwork. Its only really good for the raw layout and even then you also have a lot of customization work to do afterwards.

    I know that a lot of C3 devs just tend to make casual games that only require a super simple UI, but are there users with any tips or best practices in order to create larger scale UIs?

    Thanks

    Tagged:

  • Apologies for not responding.

    In the end I just had my html slide on from the right to save time but I never resolved this. I have had to temporarily move to another project (non construct 3) so I cant address this at the moment, but in the future I hope to come back to investigate more on this. Principally using C3 commands to animate html elements.

  • I have a html window (element) that I can position off the right side of my screen fine, but when I try to position less than x =0 (off to the left of the screen) the html window wont move below 0 (eg x=-50). Why could this be?

    I'm am doing all the positioning using the c3 event sheet.

    Cheers

    Tagged:

  • Ha ha. Like my brain. Okay cheers.

  • By the way, is that a new thing? ie Mouse.x("layer")

    I dont seem to ever remember encountering that before.

    Thanks

  • Okay. That's it - I had to use Mouse.x(1) because the canvas was on layer 1. Perfect. Thanks

  • I thought that too, but doing that and clicking on the canvas somewhere gives me console results like x:3770.6669921875, y:1912.3332519531

    I would have thought the result needs to be between 0 and 100 for both x and y.

    EDIT: It seems that when I click on the canvas, the canvas is at x:640, y:20 . But the Mouse is at something like x: 4900, y:1900

    It looks like the mouse is using different coordinates to the canvas?!?!

    How do I fix that? The scale rate is set to 100% on all layers

  • I have a 100 by 100 canvas on my screen that I want to draw onto at runtime using the mouse. The canvas could be positioned at any random place on screen. Its this little square I want to draw on with the mouse.

    Using the Fill Rectangle tool, how do I find the correct co-ordinates to draw on this canvas from the mouse position when the mouse is clicked?

    I have tried all kinds of offsetting approaches using javascript but I cant get anything to work and it seems overlay complex for a simple task.

    Is there an easy way to do this?

    Thanks

    Tagged:

Grimmy's avatar

Grimmy

Member since 20 Nov, 2012

Twitter
Grimmy has 2 followers

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

Progress

17/44
How to earn trophies