Bonesey's Recent Forum Activity

  • It isn t yet possible I think, local variables can only be done inside an event or a group.

    There is your answer. Put the "every tick" and local variables into a group, and then activate/deactivate that group whenever you need it. The other option is to put them into a Function and call it whenever you need it.

    Also if you were going to be calling local variables every tick, they may as well be global variables, then none of this matters.

  • One way to check for specific devices is to "on start of layout " do a system compare for the windowWidth/windowHeight.

    So it would be something like

    On start of layout -->

    windowWidth = 640

    windowHeight = 960 ----> set text "iPhone 4"

    windowWidth = 768

    windowHeight = 1024 ----> set text "iPad 2"

  • So here is what is happening. Because you added the system wait, the player--> spawn object isn't going to work because the player is long gone (there is no player to create the object). So what we want to do is instead have:

    Wait 4,5 secs

    SYSTEM---> create object ->player

    Now the problem with this is that we don't know where to create the player, so we will need to create some variables to make this work. So start by making 2 global variables named playerX and playerY. Now make this event

    Player on destroyed--->System-> set var playerX to player.X

    set var playerY to player.Y

    Wait 4.5 secs

    Create object "player" at (playerX, playerY)

    Let me know if this works for you

    Sorry I couldn't give a capx I'm on my phone lol

    Cheers,

    Bonesey

  • As manarsoft said, use the set animation action under the sprite when the key is pressed to run. Also for most platformers (which I assume you are making) you only need 1 animation for running, and then set "mirror sprite" when walking in one direction, and "don't mirror" for the other.

    Hope this helps

  • Only give the family that has ALL the bug types the behaviors you want them ALL to have. If the 1-5 family has the behavior, all the objects in the family have the behavior so adding the behavior to the 1-3 and 1-4 types is redundant. You would only use the lower level families to spawn the bugs while the higher family would do all the processing.

    What he said ^^

    Also I would like to add that you may only need 1 family for all of the bugs, then add/check for an instance variable to determine what type of bug it is

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What about:

    System -> On Load Complete ---> Go to layout "whereEver"

  • I am also having the same problem.

    And letterbox scale does nothing because cocoonjs defaults to scale outer.

  • I am on my phone so sorry I can't give you a more thorough example but...

    What you want is to call a function with the family UID as the parameter when a collision is detected.

    So it should look something like...

    Condition

    PsyAttacks on collision with ZombieFamily ---> Call function "zombieEffects"(ZombieFamily.UID)

    And then create that function

    On Function "zombieEffects"

    ZombieFamily pick by UID (function.param(0)) ---> do fancy effects

    Hope this helps

  • Make an event for the text box with this:

    Every tick --> Set text to: XP&"/"&LevelUpXP

  • Like Tom said, 100 events can actually do quite a bit. But if you are serious about game development, $100 for a personal license isn't really that much in the long term.

    While I was playing around with C2 using the free version most of the prototypes I made rarely needed more then 100 events. The reason I ended up buying the full version was actually for the Families feature which allows you much more freedom to make games with even less events.

  • Hey Richard!

    I dont have any experience using LOS, but comparing distance in a "For Each" loop instead seems to do what you are looking for.

    Does this work for you?

    dl.dropboxusercontent.com/s/pbcfbq8xttgicx5/ghost%20shooter%20v1test.capx

  • I just want to say thank you to ArcadEd for all of these helpful courses! I am just starting out with C2 and so many of your lessons have already helped me improve greatly. Looking forward to this one for sure!

Bonesey's avatar

Bonesey

Member since 11 Oct, 2013

None one is following Bonesey yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies