sgn15's Recent Forum Activity

  • sine behavior will do that for you, up-down or left-right or sine movement, all possible

    I believe there are example of that in C2 already

  • borneoboy

    very simple solution for shooting both sides is to create a player variable called "Facing"

    Always (Every tick) set the value of Facing to 1 if your player is facing RIGHT

    and set to -1 if facing LEFT

    Shoot a bullet

    then Bullet: Set Bullet Speed to 300*Bullet.Facing

    it should shoot left when player is facing left, shoot right when player is facing right

  • blackhornet

    thanks. that gave me another idea to use for another concept

    korbaach

    thanks for giving a working example. But I want to learn it not just copy the codes. Can I ask a few questions?

    1. How exactly does overlapping at offset works? I read description and I don't get it?

    2. this expression

    lerp(Sprite3.Angle,Sprite2.Var_angle,dt*20)

    ^I get that Var_angle. what is dt? I don't get what dt means.

    dt

    Return delta-time according to the object's own timescale. See Delta-time and framerate independence for more information.

    description from

    https://www.scirra.com/manual/126/system-expressions

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I need a condition that means platform object (player) is on top of a SPECIFIC INSTANCE of jumpthru object to make the player follow the angle of the jumpthru object.

    There are MULTIPLE instances of the jumpthru object, each with DIFFERENT angles so I really need the condition that means player is stepping on a specific instance.

    I only need the condition, I already know the action.

    Already tried these (one at a time)

    overlapping

    collision

    platform: is on floor

    Any ideas I can try? Thanks in advance.

  • newt

    C: System: At start of layout <----I think this is wrong but not sure what to replace it with

    A: Audio: Play int(random(5)) from Music

    A: System: Wait "Audio.Duration" secs <--- duration can't take 0 parameters, tried "Audio.Playbacktime" same issue

    How can I set the duration if the music files are not same duration?

    jobel

    thanks. please check your pm.

  • anyone?

  • 1. How do I randomly pick from a set of music files to play (not looping) at start of layout and then after it finishes, select another one from same set, and so on.

    2. If I have a 5mb ogg file and import it to my game, can I still make the size of ogg file smaller after it is added to the capx? bottomline is I don't want a big capx size and I would like to know how to make the sound files as small as possible, possibly as small 200kb per ogg file.

  • there's an effect called "Inverse" that inverts the colors of the object

  • korbaach

    blackhornet

    ok. thanks

    but it still can't distinguish between object instances.

    I saw the description of Compare two values in the add action window. It said there it's not for objects.

    How do I achieve this for each instance of an object? Is it possible?

  • Now, I had to make a new test file showing what I am saying because my game is already complex and it won't help anyone trying to solve this problem because my game has many systems already implemented.

    The example file uses keyboard inputs as conditions BUT they are just for example purposes.

    In my game, I don't use keyboard inputs as conditions, but you get the point of the problem.

  • blackhornet

    It still doesn't work.

    I used "Compare two values" for the System: Random (1) <= Player.Probability condition and I think "Compare two values" can't detect between object instances. Now I need an alternative way of comparing same variable but can detect between instances of Player object.

    Any ideas?

  • If I want to make an event happen on 50% chance, I add

    System: Random(1) <= 0.5

    But, if I want to make an event happen on an Probability% chance and Probability is an instance variable of Player, using these events........

    System: Random (1) <= Player.Probability

    For Each Player

    ....... It doesn't work

    I have events setting the value of Probability instance variable depending on different situations. and yes, I checked that the values are correctly being set and none of the values are zero, I even tried setting Probability to 1 so 1 means it should always happen, but it is not working.

    Help please

sgn15's avatar

sgn15

Member since 20 Sep, 2013

None one is following sgn15 yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies