Sangeeth777's Forum Posts

  • Hello Everyone,

    Anyone do know how to achieve the vibration of this game https://itunes.apple.com/us/app/zombie-gunship-revenant-ar/id1254976492?mt=8 in construct3 for IOS and Android devices

    Please do help.

    Kind Regards

  • AllanR dop2000

    hey,

    can you please help me how would i change the animation of the truck with respect to the angle, suppose the convoy is moving straight and the angle of convoy =90 or 270 then play "straight" animation, or it is moving in counter-clockwise direction then play "side" animation and set the object to not flipped, or it is moving in clockwise direction then play "Side " animation and set the object to flipped.

    i am attaching the capx file below.

    drive.google.com/file/d/1on2jNG2o-1QCShyTrZPG5zRiWSUmW5GD/view

  • AllanR dop2000

    Thanks alot and sorry for the late reply.

    and about the animation change (i.e. when the truck is moving in the right direction then it will play right animation, and when it moves in the left direction it will play left animation and when it moves forward it will play forward animation (i.e. when angle = 0 degree (play right animation), 180 degree (play left animation), 270 or 90 degree (play forward animation) how would it get this animation to work.

    And about the reverse and change path. i mean to stop the truck when the road is blocked and backing up the truck and turning down on a different road.

    Can you please help me out on this.

    Kind Regards

  • AllanR

    Thanks a lot,

    And how will I make the set position smooth since I want to do this for the movement of Car AI that will move according to the directioner sprite angle . And change its animation when the angle is changed.

    And how can I make the movement to take reverse for e.g. the car to take reverse and change the path.

    Kind regards

  • WRS

    it was a little more complicated than I expected when there were multiple patrol objects and lots of triggers. In my sample, patrols move until they hit a trigger, they then turn until they match the angle of the trigger, then start moving again.

    If a trigger is set to an angle of 90 degrees, C2 sometimes thought it was a small fraction off (like 90.00002), so you have to round the angles before comparing.

    I also ran into trouble when multiple patrols were overlapping triggers at the same time - you have to make sure you are comparing to the correct trigger.

    then, if the difference in direction is more than 180 degrees, you probably want to turn the shorter direction, so in that case the patrol turns -5 degrees.

    you can get my sample here:

    https://www.rieperts.com/games/forum/patrol.capx

    EDIT: one important note is that, obviously, if the patrol is turning 5 degrees (or -5 degrees) per tick, then you have to make sure the angle of the trigger is a multiple of 5 - otherwise the angle of the patrol will never match up with the angle of the trigger and it will just spin around on the trigger forever...

    AllanR

    hey, in your example when the angle of the object changes from 180 to 270 degrees it doesn't rotate in -2.5 degrees

    please do have a look at the capx file i am attaching below

    drive.google.com/file/d/1C0TmW-rNAlTtwJZwlciZyRpOUj0ho_kd/view

  • RamPackWobble> move with touch example

    <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.05_22h08m05s_002.png" border="0">

    Hey,

    Unable to find the capx file.

  • Something like this?

    https://dl.dropboxusercontent.com/u/485 ... ockey.capx

    LittleStain

    Unable to find the capx.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Construct2 – Login with Google Play Services, Achievements and ScoreBoards

    https://www.youtube.com/watch?v=9Xx5gtjiheg (Portuguese language Vídeo)

    wckina

    Unable to find the video.

    Can you please let me know how to implement leaderboard for ios & android ?

  • Can anyone please let know how to make the google play leaderboard ?

  • dop2000

    Hey,

    How to make leaderboard to compare the score with other users playing the same game.

    Please help me out

  • How to make an sprite object (i.e. Camera ) move by tilting the mobile device with smooth movement on all directions without any lag.

    My events are in the screenshot but i am facing a lag in the movement.

    Can anyone please help me out with the events to make it workout without any lag and smooth movement and should not go out the layout.

  • dop2000 Sangeeth777

    Nice job! I was tempted to give it a try yesterday too. Then I saw your's and that inspired me to add a few enhancements to it...

    like explosions, and a HUD. Left click to shoot, right click locks the HUD so it stops following the mouse. I skewed the ground in photoshop, and made the parts for the HUD there too. (I borrowed the explosions from the Space shooter tutorial)

    obviously, this is totally fake 3D, so you can't change camera angles like in the GIF above, but it still looks pretty good and would make a fun game. You can rotate the ground layers with the arrow keys, but that messes up the targeting of the bullets...

    https://www.rieperts.com/games/forum/HelicopterGunHUD.capx

    AllanR

    Thanks alot.

    I was doing it for touch devices, something like to drag the crosshair using touch. and the camera movement will simulated with an sprite object to move automatically.

  • I gave it a try:

    https://www.dropbox.com/s/0ypmnjgge5ma3wx/HelicopterMachineGun.capx?dl=0

    dop2000

    Thanks alot for helping me out.

  • Sorry, I don't really have the time to make this. Try using sprites with bullet behaviour that are created in 2 places and angle toward a cursor object in the centre.

    hey i have added this events.

    Am i doing it right or should need to make some changes.

    Thanks for your reply.

  • This looks like first person perspective from a helicopter, not top down perspective. To achieve that gif you would create a cursor and have the bullets angle toward it and adjust their scale as they move.

    Can you please help me with an example of the events that how it would work.