gabrign's Recent Forum Activity

  • I finished the test using the maths but yours is so simply, elegant...! I didn't take a look to the angle movement actions until now <img src="smileys/smiley17.gif" border="0" align="middle" /> For that I was using bullet for movement. Anyway if somebody wish take a look making it in the really noob way <img src="smileys/smiley2.gif" border="0" align="middle" />:

    dl.dropbox.com/u/47230303/rotation_combat_test.capx

    Thanks you very much!

    PD: The movement of the object in your example appears increase his radius in the movement left/right. Can it be some estrange angle conversion from SC2 ? Anyway, is so perfect at is! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Thanks for reply! Hehehe I put a bad delay for the frames in the gif :P

    I had the formula just there for use it, I think must be something like this (I just wake up in this moment, I don't test it):

    player.Y:

    mouse.Y + int(Round( distance (mouse.X,mouse.Y,player.X,player.Y)* Sin( player.angle ) ));

    player.X:

    mouse.X + int(Round( distance (mouse.X,mouse.Y,player.X,player.Y) * Cos( player.angle ) ));

    I will confirm if this works here :D

  • My project had some particular movement, the player moves forward (with W or back with S) to a point given by mouse (that's done) . Then, the movement to left and right is around it, without change the distance (unless we use the W and S, of course), in few words, the player moves in a circle around the mouse cursor. There is some function of archive this or I must use maths ?

    Here a diagram:   

    s7.postimage.org/v15cnej23/idea_001_zpsd397be6b.gif

  • I'm having a little problem with this: Under firefox (I didn't test the rest), the navigator test to start loading the page (moving icon), but not stops the game and don't go anywhere, until I change to another tab, then works.

    In exchange, the 'in new window' seems to work.

    Someone can confirm this?

  • If it run HTML5, we can play it.

  • Boolean, I didn't notice that condition, really useful, thanks you!

  • Well: My first idea for one solution: "Put an zone around the player using overlapping for the monsters, lava pits, spikes..." but if somebody had a better one, please say it!

    And thanks for the welcome GeometriX

  • Wow, so fast reply! The tip about the green arrow is so useful, thanks.

    The "Is overlapping ... " not work for this situation because the monster ( I forgot say it, sorry) had the "SOLID" behaviour. The hero the platform one. So must be another solution...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had problem with the collision between my player and a monster. Using "on collision with... " my player take damage in the first contact, but if I leave the player over the monster, the player don't take more damage unless I separate him and make it collide again. There is a form of trigger the collision every tick?

    And I'm new here. The program is the most easy and intuitive I ever seen. Really fun at end of the day!

    EDIT: I forgot say it, sorry: the monster had the "SOLID" behaviour. The hero the platform one.

gabrign's avatar

gabrign

Member since 30 Dec, 2012

None one is following gabrign yet!

Connect with gabrign

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies