EpicRaid's Forum Posts

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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:

  • That'd be awesome. Can't wait! Thanks in advance.

  • Thanks for your reply.

    If I wanted to change the code so that the cars only turn right, (so they circle a block, or possibly around four blocks) what would I need to change? I intend to use it for enemy cars, so they won't Wrap, and the enemy cars will drive around a block on the map.

    I also want to use the same code so that cars only go straight ahead (This one does use the Wrap behavior) and will give way to cars coming from the right. This code will be used for all other, regular traffic then.

    What would I need to change?

  • Anyone?

    I tried adding and changing parts of the code in the link (you can still open the .capx in C3 ;)) but after hours of fiddling I gave up. I was hoping someone with more knowledge could help out!

  • Maybe it's trying to connect to (by default) an incognito window in Chrome. Otherwise, check the browser settings of Chrome, maybe it does clear the cookies/cache automatically.