shinkan's Forum Posts

  • did you activate Input group after ko?

  • It would be great if you could use a string in Simulate Platform pressing " " ...

    You can make your Player0, Player1, Player2 and Player3 into a family "Players".

    then

    left arrow is down - > Function: Call "Move" (Left)

    ...

    right arrow is down - > Function: Call "Move" (Right)

    ...

    Function: On "Move" -> Players: Set Facing to function.param(0)

                        -> Players: Set Movement to function.param(0)

    Only thing left is way to pick players, but it depends on your code.

    edit: you could use same function to controll everything - I change code above a little

  • Unfortunately they don't.

    Google is doing something with their Chrome mobile for webgl (working beta is available for android as i remember correctly)

  • node-webkit are kind of new for C2, they appeared in r115 beta, so they are still experimental and in test phase.

    So maybe You could give Ashley a chance to fully implement that first.

    Joannesalfa Ashley misunderstood your question I'm afraid.

    ...we don't develop node-webkit or any plugins for it ourselves, if that's what you mean.

    He said that (as a Scirra) don't developed node-webkit or any plugins for it.

    Not actual plugins for C2 :)

  • Yes.

    Basically families are like groups of same objects type (families of sprites, families of text objects etc).

    If you create a family for sprite objects (not sure if there's a limit of attached objects) you can then set a variable for your family (not sprite but family itself) and all members of that family will inherit this variables.

    For example

    Create Family - "my_objects" with family members: sprite1, sprite2, sprite3, sprite4

    Set family number variable "health" = 0

    this means that every member of family "my_object" will have number variable called "health" = 0.

    And here comes the best part. You can set this variable independently for each member and they will keep track of it's own value.

    Sprite1.health = 2

    Sprite3.health = 4

    etc

    If you set your actions to something like:

    +On left mouse button clicked on "my_objects" - > subtract 1 from "health"

    then if you clicked on Sprite1, -1 will be subtracted only from this object.

    Same goes with behaviors.

    Families, containers and functions are your best friends :D

  • danuyos glad I could help.

  • Unfortunately there no way to spawn objects by name at this time.

    Easy solution to your problem would be use of instance variables for bullet sprite.

    example in pseudo code:

    bullet_type = 1 -> bullet.speed = 100

                   -> bullet.power = 20

    bullet_type = 2 -> bullet.speed = 200

                   -> bullet.power = 50

    then after spawning you need to set variable to proper value

    +Turret spawn Bullet

    +set bullet.bullet_type = 1

  • 1. Yes. Make sure to include event sheet with function to event sheet who call this function. - Right mouse click on event sheet editor and select "Include evant sheet.

    2.You named your function object in the layout editor - You have set global name for the object used in actions, conditions...

    simpe functions.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...This also brings up a question which I have not been able to answer honestly - does a C2 game deserve as much respect as the same game made from scratch?

    Does games made in Unreal Engine, Unity... deserve same thing?

  • You can use Groups for that.

    put all of your player controls to a group ie. "player" (activate)

    and the when player dies set group "player" to deactivate.

  • <img src="http://dl.dropbox.com/u/34375299/Construct%202/bugs%20and%20fixes/betwen%20angle%20spawn.JPG" border="0" />

  • No problem.

    You learned animations workflow the hard way ;)

  • You set your images as a different animations instead of frames.

    When you open Edit image editor for your sprite on the right you have Animation window - just need to set one in here.

    On the bottom you should have Animation frames window - there sn image of your sprite with "0" below it.

    That number "0" is your frame number.

    Animation plays and loops through animation frames. What you did is you have set 5 different animations with 1 frame each only.

    Animations are for grouping stuff like: walk, shoot, run, jump.

    Each animation is made of frames, like on the image here.

    <img src="http://dl.dropbox.com/u/34375299/Construct%202/bugs%20and%20fixes/animationframes.JPG" border="0" />

  • You need to set Default controls to No and then use Keyboard: "key name" is down.

    here's the example.capx