EpicRaid's Forum Posts

  • Yup, an option Right click > Close tab would be great to have, I still ocassionally accidentally close one of the tabs, damn that one click x! So far my only solution is to give the layouts and event sheets longer names, so you'll less likely click that x, but that can easily double your tab row, which also eats up your work 'space'.

    P.S. A bit off topic but I had some random C3 editor tab 'lockups' before, after choosing a new image in the sprite editor, and closing the sprite editor, it would forever show a loading cursor, and you can't do anything anymore in the C3 editor. Which is basically a total loss of work. I didn't encounter that anymore, but I didn't see any stable release update. Something was changed/updated in Chrome perhaps?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would definitely recommend uploading a trailer to Youtube instead. You'll get more views and currently it's a bit cumbersome to download it from someone's Drive without knowing what the video is about. You can insert the URL of the Youtube video in your original post. Just a tip ;)

  • Thanks man!

    Your latest example is exactly what I was looking for. I've nothing to add.

    That made my day! :)

  • Hey no worries, thanks so much for this! It works like a charm. I only changed the code so it always points at the target.

    Wouldn't it be great to have tick box in the Tween behavior that says 'Update Tween until at position' or something? That would've made it a lot easier!

    Is it possible to have the Arrow to be always positioned top left by X and Y -100 pixels from the Target and Player position, so that it doesn't point at their centre all the time when it's not 'tweening'?

    Also, can the Arrow 'tween' slower? Tried changing the Timers but I couldn't see a difference.

    Thanks!

  • Hey, you should click: Add event > System > Compare variable. In order to get the variable you should right click at the very top of your event sheet and choose 'Add global variable'.

    I could explain it all step by step but I'm thinking if you try the Construct 3 beginners Tutorial, you will learn all of this and much more :) Otherwise it would be much too time consuming for me.

    construct.net/en/tutorials/beginners-guide-construct-1

    Of course, if you get stuck with something you can always ask here.

  • Yeah so my code basically works like this:

    Event 231; Arrow should always point angle at Target2

    Event 232 speaks for itself

    Event 233; I have an instance variable on the Player car, which starts by default at 1. I had to add this variable because otherwise the arrow would start tweening from Target2 towards the Player when the layout runs or position of the Player is reset and those two objects are far apart. And it should do this only once for each time the position of the Player is reset.

    So that's why the instance variable is set up like that.

    Even 234; This is where I want the arrow to keep pointing at Target2 when the tween finishes, only when within LoS. The -50 X and -50 Y is so it won't point at the centre of the object but I'm sure you got that.

    The remaining events are basically a 'copy' to make it tween back that's correct.

    Hopefully I was able to make it a bit more clear.

    I'm going to try and see if I can make it work with your new example! Thanks!

  • I'm not sure you can modify a game like that, by using Chrome's devtools. Wouldn't be nice if someone could.

  • where and how i do this? can help me please?

    The 'Set time scale' can be found when you add an action. Double click on 'System' after clicking 'Add action'. Then search for the 'Set time scale' action and add it. You will need something that triggers it; add a condition for that.

  • I can open them all no problem.

    They are all 3D projects, coincidence?

    What device are you trying to open them with?

  • It's hard to say, could be anything. Also hard to say since we can't look into your project.

    However, the moving block might already have been 'activated' (moving) when the game is being played through something in your events. Make sure it only starts moving when the cutscene layout is accessed.

  • Hey,

    Thanks for posting that example.

    I fiddled with it a bit, but am not able to implement it just yet. This is what my code originally looks like;

    Had to code it so the arrow keeps at a steady position around the Player when it is moving and doesn't have its Target in sight.

    The tweens work, its just that they finish at an outdated position.

    It's hard to implement a different code example in your own!

    I fiddled with it but I'm not able to make it work, bit confused where to put the code, since I have an 'in' and 'out' tween so the events work differently. The arrows should move smoothly to/back when its in/out of range.

    P.S. The instance variable 'ArrowTween' in my example, I used a local variable for it first instead, but that didn't make it work. It wasn't until I replaced it with an instance variable that it worked. Maybe a bit off topic, but was wondering why that doesn't work? It should do the exact same thing.

  • Something like this?

  • Something like this perhaps?

  • Yeah you need to make the tiled background twice as wide, if it goes from left to right or other way around.

    So if the tiled background moves left (with bullet behavior), and your layout viewport is 500 pixels wide, you make the tiled background 1000 pixels wide. Then you can set its X position back to 0 when its X position reaches -500.

    This example is for screen filling backgrounds, but you can make the tiled background smaller of course, you just need to figure out the coordinates together with the objects width.

  • I'm currently using the tween behavior for an arrow pointing at moving objects.

    When the player is near the moving object, the arrow moves smoothly to the moving object in say, 1 second.

    The problem is that when the tween is in motion, it doesn't 'update' the moving object's position X and Y so it will always end the tween too early and to an outdated position of the moving object.

    How can I solve this?

    Tagged: