UltimateArceus3's Forum Posts

  • Here's a one-event version!

    Ashley

    So many possibilities with your one event!

  • lunarray Fixed it up for me! The Problem is solved.

  • krisnk

    I tested on chrome browser and it worked fine, can you be more specific about the steps to reproduce the problem? And also, this is a wild guess but it is a behaviour, not a plugin, so you should put it into behavior folder, not plugin folder, maybe that is why?

    UltimateArceus3

    It does work with expression to some extent; Though you need to know how to convert numerics into strings and vice versa.

    I don't really understand the problem you encounter, are you using Set Target X and Set Target Y? Or are you using create/initialize tween? Sometimes using Set Target X and Set Target Y would be more convenient, depending on the case. I could help more if you could provide me with a simple capx describing what you want.

    I am not sure either. If it is on the weaker device with less processing power, it might be because LiteTween is using precalculated array instead of having to calculate the lerp every tick, so it is lighter on the CPU. But if it is on an adequate PC/mobile, lerp/dt should have about the same smoothness with linear LiteTween.

    lunarray

    Thanks! That fixed it up!

  • lunarray

    Can you make your LiteTween addon work with expressions?

    I'm trying to make an object move from 1 part of the screen to another. Variables don't work because I'm trying to use Positions, which is both X and Y, and I can't include a "," in the variable, or it will screw it up.

    Here is a link to my forum post of my problem.

    https://www.scirra.com/forum/how-do-i-make-an-object-go-to-an-x-y-of-the-screen_t180346

  • Also consider that a third-part addon may have issues, and in that case you may need to report it in the official topic for the addon.

    Kyatric

    Okay, I might try posting a comment to them.

  • I have been meaning to check out LiteTween lately - but I've been finding it just as easy to do them manually - so I'm not sure exactly what results you're getting.

    When you say "it does work, but not with the plugin" what do you mean? What part works and what part doesn't?

    If it's moving to the position, but then it's kind of "floating" around when you move - that's easy to solve. If it's something else, then try to explain specifically.

    ~Sol

    I got angry, so I decided to see if the viewpoint expression you gave me actually worked. So I made that if I clicked L, it would spawn that Heart at:

    X: ViewportLeft(0)+45

    Y: ViewportTop(0)+452.5

    And that worked. But Litetween doesn't take expressions, so I turned to variables, but that didn't help, either.

  • The Canvas2Layer and Layer2Canvas thing I was talking about is more specifially used to track objects between varying layers of parallaxing. For example in my project I have a light source on a parallaxed layer, but the object that gives the illusion of it actually being "light" is on a non-parallaxed layer. I had to make the "light" follow the source between the varying parallax values... so this is the use of Layer2Canvas and Canvas2Layer.

    UltimateArceus3

    If you set your heart to something like:

    heart.x = ViewportLeft("whatever layer name or number")+5

    heart.Y = ViewportBottom("same layer name or whatever as above") -5

    It will place the heart at 5px from the left and 5px from the bottom of the current layer (UI layer?) and always stay there no matter where the player moves to.

    *EDIT*

    Kyatric ninja... ninja, RAH!

    ~Sol

    SoldjahBoy

    It does work, but I can't make it work with the plugin I'm using that makes it move to that position.

    The plugin I'm using is LiteTween.

    Here's the link:

    https://www.scirra.com/forum/behavior-litetween_t70700

  • You want the viewport expressions.

    [quote:njsazsfi]ViewportBottom(layer)

    ViewportLeft(layer)

    ViewportRight(layer)

    ViewportTop(layer)

    Return the viewport boundaries in layout co-ordinates of a given layer. Not all layers have the same viewport if they are parallaxed, scaled or rotated separately.

    oosyrag

    But how do I make it on a specific coordinate of the layer?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why search an alternative to the system expressions that are exactly doing what you are attempting to do and requiring ?

    Also I'm confused by what you said : "so if I told an object to move that the player spawns in with that specific x, y coordinates, it would go there and not be on the player's screen."

    Could you detail exactly, and in order, what you are doing, what you are attempting to do, what you'd expect to do and what you are currently experiencing ?

    Posting a capx is not a bad idea either.

    You mention spawning something.

    [quote:2x09wlyx]Understand the picking of newly created/spawn instances since R101 - LINK

    as per the How do I FAQ

    Kyatric

    I'll explain.

    I'm trying to make some Undertale fangame, so I'm trying to make that heart thing when you encounter a battle go in a specific spot in the screen. The problem is, I don't know the expression for the X and Y of the screen, just regular X and Ys.

    The Regular X and Y that I'm using for the heart to move to is: 45, 452.5

    Here is a video to explain my problem: https://drive.google.com/file/d/0Bw7SYAAkapF1MFJrQnpfa2YtMGc/view

    On the first section of the video, it shows where the heart is supposed to move on to the screen, after I refreshed the page, I moved away from that section of the layout, and then the heart went to those regular coordinates.

    I'm trying to ask is, Is there a expression I can use so I can move that heart over to that section of the screen, like the X, Y of the Screen?

  • I saw something Sol posted about the layertocanvas or canvastolayer expressions. I haven't been able to use it yet myself, but I think that's what you want.

    calebbennetts

    Erm, seems I have to learn how this works...Is there a Alternative way, though?

  • I know how to make an object move to a certain x, y, But I have a player that is able to move around on the screen, so if I told an object to move that the player spawns in with that specific x, y coordinates, it would go there and not be on the player's screen.

    Is there any special type of x, y coordinates that are used for the screen?

  • linkman2004

    Can you make a C2 version of your behavior?

  • How do I preview the gamejolt plugin? I made a Gamejolt login thing but it won't let me log in.

  • kinda offtopic but is there a way to be able to host the server kinda dedicated on your own ?

    Hmm, you kind of gave me an idea. I can make a seperate program to act as the host for a "dedicated server"

    Thanks for the Idea!

  • Describe your glitch?

    The realtime multiplayer tutorial is very basic and concise, you really need to do your best and understand each part of it. While the multiplayer plugin automatically handles a ton of basic net code principles for you, it is still flexible enough to allow for different implementations in terms of multiplayer logic and updates.

    Basically, most projects/examples will be even more complicated than the tutorial example. If you don't understand all the ideas presented in the multiplayer tutorial, it will be very difficult to proceed or troubleshoot problems.

    Well, one of the most frequent and annoying glitches is that when 2 players join, the First Player (The Host) can't see the second player, but the second player can see the first player (The Host). When you move the First Player, you can see the first player move on the second player's screen but not vice versa.