jobel's Recent Forum Activity

  • do you mean when the player bumps into the brown wall?

  • hey Somebody any ideas on how to achieve a top down shockwave?... I've looked into the warp ripple with lens/glass, but it's not quite right...

  • awesome!

  • It's pretty easy.. there's 2 parts... 1. you write what happens when the function is called.. and 2. then you call it from somewhere.

    to pass it parameters you just add the to the dialogue in the call Action. In your actual function you just reference each parameter using the generic Function.Param() <-- the number signifies which parameter it is.. 1st, 2nd or 3rd.. etc..

  • well it depends on how your game is set up.

    if you have all your enemies off screen for example - in "standby" mode, and they were in a family called Enemies. You could "Pick Random Enemies" which would pick one of them and you could execute your logic from there...

    Another way would be to make a unique animation or frame for each enemy in a single sprite. You'd give it an instance variable called "Type", and that would be which enemy it was.. that would correspond to which animation/or frame you would use.

    Another way that might be best is to just have a function that spawns different enemies based on what you pass to it. So if you had 3 enemies: Imp, Guard, Troll

    you'd do:

    Call Function SpawnRandomEnemy(choose("Imp",Guard","Troll")) //this will pick a random one

    Function SpawnEnemy

    If Function.Param(0) = "Imp" then do Spawn Imp

    If Function.Param(0) = "Guard" then do Spawn Guard

    If Function.Param(0) = "Troll" then do Spawn Troll

  • Instance variables will only be global if you make the object global. Otherwise they will not retain their value between layouts.

    You don't need a built in toggle.. just do this:

    TO MAKE THE OPPOSITE HAPPEN:

    If isMusicOn = "yes" then Set isMusicOn to "no"

    else

    Set isMusicOn to "yes"

    Make sure you are untoggling Silent before you start playing the music.

  • adjust the period offset parameter.

  • you can do it.. but I've read where Ashley warns against this.. saying Text is drawn completely different (very performance heavy) and that you should use Spritefonts whenever you are moving text..

  • oh sorry my bad.. I always mix that up.. you select the sprite you want, then under Size/Position you will see pick nearest.

    otaconnor you should do one of the "picking" tutorials, it will help you understand it better..

  • it's not an action.. its an event. it's under System

    it sounds like you need to use it as a "sub-event"

    I can't tell what you are trying to do.. but it should be something like this

    CHECK the RANGE in a top level event like this:

    if range < 200

    (add a sub_event of this check) System Pick Nearest sprite etc... then add an action once you pick the nearest sprite...

  • stumbled on here because I was looking for Strafe..

    Bl4ckSh33p How is the CustomMove/Car working? also, why are you using getbit()? is it because multiplayer?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can use the System Pick Nearest event.. then check the speed or however you determine it is "moving"

jobel's avatar

jobel

Member since 27 Jul, 2013

Twitter
jobel has 8 followers

Connect with jobel

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies