megatronx's Forum Posts

  • This is redonk. Should just be able to store multiple named images in a single TiledBG. Same for tilemaps...

    Agreed

    troublesum thanks

  • That's kind of like that Star Trek episode where the aliens only spoke in metaphors.

    If you don't know what the metaphor is referencing it means noting to you.

    Basically its out of scope to the computer.

    Yeah, that's why having a converter would be a cool thing. I might actually try and make one with events. Atm, I'm still doing it in a slog way, by comparing variable, and setting two local vars values to global vars values.

  • "Sin" behavior buddy.

    https://drive.google.com/file/d/0B0jUjW ... sp=sharing

    Also you don't need to make another object with grass at opposing angle, just stretch the image the other way around.

  • haha

  • You can use the Dictionary if you need this type of functionality.

    ok, will look in to it. Thanks for the advice.

  • I've never heard of any language that could do that, although I'm sure somebody will come along and prove otherwise.

    Well it's not exactly turning string in to variable, but turning string in to a variable name ( that is already set ), so it can request it's value.

  • DUTOIT, megatronx is looking for an expression that turns a string into a variable. No such functionality exists in C2.

    I thought so! :/ At first I thought it would work automatically. Bugger. Shall I make a request?

  • Jak chcesz zeby kazdy "ludzik" byl traktowany osobno, musisz uzyc petli FOR EACH na poczatku lancucha zdarzen. Pozdro!

  • megatronx,

    Screenshot of blackhornet capx.

    It does work.

    Thanks for that.

    blackhornet I can see now that there must be some misunderstanding. Basically tokenat(Item,ItemDat_Stat,"'") is returning the name of a global variable ( for example PlayDat_HP ), that holds a number. And I want to access that number within that call.

    tokenat(Item,ItemDat_Stat,"'") -> PlayDat_HP -> varPlayDat_HP -> Number [/code:1d8grc0y]
    
    @Ashley We do not have some kind of forcing string "" in to calling a var of the same name? Something like var("PlayDat_HP")?
  • nothing that id be aware of. might be a bug .can u share your capx?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As long as your ItemDat_Stat is correctly formatted, it should work fine.

    Still can't open the capx. It says it was saved in 167.2.

  • tokenat is a text expression. Use int(tokenat()) if it needs to be (is) an integer.

    I did try that too, but it doesn't work either.

  • > I don't know if I can have several instances of the same tiled bg, but for each one of them load different image.

    >

    As I can remember You can't do that in C2. It was possible in CC to have multiple instances of same tileBG with different texture on each of them, but not in C2 - at least while I was testing it few months ago.

    Cheers. Will try rex's plugin. Seams like it's good temp solution.

    EDIT@ Yeah, I tired that plugin and it will do. Thanks again rexrainbow !

  • Can you post a sample? I've tried this, as I understand it, and it works as expected.

    Thanks, but I'm still using r163.

    Here's the screenshot of the calls. If you need capx, I can pm it to you.

    [attachment=0:lt38ngsh][/attachment:lt38ngsh]

  • Yo,

    Thanks!

    509Dave16 Yeah, I just want to make a loop.

    rexrainbow cheers, will try it out.

    Kyatric I do use, and I do require However, here I don't know if I can have several instances of the same tiled bg, but for each one of them load different image. If you're saying that's possible, then I will try this too.