Skip Navigation
Implementing triggered abilities
  • So player has all these nodes that provide abilities. Each node has a signal that the ability is activated. This is correct. What you do after the signal was your question.

    The two options i described were:

    #1 don't just connect to one omnibus function. Don't connect them all to a _gave_ability() function. This is what it sounds like you are doing. Instead seperate into seperat smaller functions. Connect ability As signal to functionA(), and abilityB signal to functionB(). Then yiu are not checking all 19 cases everything a signal is called.

    #2 if you are using the omnibus function _give_ability(ability), set an input parameter for the signal saying which specific signal was emitted. This can be done by code or the inspector when connecting the signal.

    Then on _give_ability(ability) do:

    match ability: abilityA: Give ability

  • Implementing triggered abilities
  • Without knowing your specific situation, it seems like each of you signals should not be connecting to one master "abilities" function to dole out the effects.

    Instead each signal should connect to its own function and that function is responsible for only its specif effect.

    ====== Another thought would be if you like your setup, change the if statement to a match/case. For many simple if checks the match is more optimized.

  • Is it possible to safely "give away" a Steam account to a stranger?
  • Not sure about all the personal stuff, but it is against the TOS to transfer the account.

    Big answer is I DONT KNOW, but...

    For payment/address stuff you could change them then try to revert to see if it works. For payment get a $5 gift card from Wal-Mart and set that as the credit card.

  • Suggest a Laptop for me.
  • I'm in pretty much the same boat. My past 2 laptops have been dell inspirons with a touchscreen. I use the touch screen for game programming to make sure touch events work. The one I got was $500, but probably should have gone a bit higher.

    It has a i5 processor 16gb ram, 1 tb ssd. It does indeed run tf2, guild wars 2, and other not graphically intensive games. I'm satisfied and it does work well, but below are some of the negatives of my new laptop vs my old.

    It's missing key backlights, a fingerprint to unlock, and the bodyvis much more plastic and feels not as secure as my wife's lenovo.

    Be sure to check out pics for keyboard arrangement. My new laptop has a numberpad..which is nice, but the arrow keys got shrunk which is not nice for programming.

    Be sure to check where the trackpad is. Centralized is better. My new one is more to the left and my wrist hits it when playing tf2 and I do occasionally get some movement from my wrist in game, but not much.

    I picked money up from amazon.

  • LinuxPhotoshop alternative for pixel graphics
  • The top contenders I have experience with is: -Aesprite. It's paid. It's good. Built solely for pixel art.

    Free stuff: -LibreSprite- this is the open version of aesprite before it went paid. I don't know it It's still maintained or updated, but it may suit your needs.

    -pixelorama- web based made in the godot engine.

  • None of these anchors are real: Channel 1 plans for AI to generate news, broadcasters
  • I watched the whole thing. I think most anchors talked a bit too slow which seemed fake. Those hand gestures were weird especially for (I don't know his name) the black anchor. Very rigid fingers.

    The main cringe section was the movie section where they tried to have the black anchor act sassy but that's hard with a very level speaking tone and speed.

    Honestly, I'd watch something like that once a week.it was nice to get a broad cross section of news.

  • Recommend a game for me to play with my partner
  • I play a lot of games with my 10yr old daughter. Here are some of what we liked:

    -Any lego game(there are sooo many and they often go on sale)

    -trine series, much more puzzley

    -sackboy a big adventure

    -brothers a tale of two sons

    -it takes two

    -portal 2

    -degrees of separation

    -putty pals

    -ibb and obb

    -toodee and topdee

    -bleep bloop

    -battle block theater

    -chariot

    -pikunuku

    We also loved going through the monkey island games. They are not mumtiplayer but they are slow point and click games that we bounced ideas off one another.

  • What is a hobby you enjoy, but seems too quirky or obscure to bring up in most conversations?
  • I am also learning Japanese. I fine it hard to think of the sentence structure as different than English. In my mind I find myself daying the sentences the way Yoda from star wars does and it makes more sense.

    Yoda I am-->Yoda desu

  • [bug] On Android I see & instead of &( and symbol)

    !

    In this picture you can see it in the title of the one post. I have noticed itnin comments sections as well.

    I see this nearly daily.

    I remember seeing a different code on comments as well. It was something like  

    7
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)KY
    Kylamon1 @lemmy.world
    Posts 1
    Comments 37