megatronx's Recent Forum Activity

  • nothing that id be aware of. might be a bug .can u share your capx?

  • 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.

  • I've had similar weird frustrations in the past but I've not encountered this one. Try creating a local variable and first assign it the token-at value before then passing the local variable in the function call? Ie no text calcs inside the function call command. Hopefully might help you...

    Thanks, but I've tired that already and with no luck. :/

  • If you are really using 1000 objects, good idea might be to group. Let's say every 50 objects you add 1 to variable Group, and every tick or milliseconds you will calculate path for next group. At least this way you wont be calculating for all of the 1000 objects at the same time, and it will give those behind some time to recalculate the path.

    It is going to be tricky. you'll need count amount of objects based of their distance first. if 1000 of them is close, you will have to group them starting from direction of the mouse click. I don't know precisely atm ( really tired ).

    OK, Another Idea, which might be better, is to spawn several nodes/zones towards destination, before looking for path, and chain it, so they will look for first node first, then whe they arrive to first node they will look for second etc. This will significantly shorten path calculating.

    EDIT@ So, had one more thought about it. And in theory that's how I would try and program it:

    Have an invisible unit, super fast, that will be spawned from the nearest selected unit, and will go shortest path, dropping nodes on it's way, every number of pixels passed, and each node have variable for that node +1, so node one is 1, node 2 is 2 etc. Then check one by one for nearest unit ( or use loop to get a number of nearest units. You might ask on the forums how to do it, cause i don't know; maybe look in to this ), selected but not moving units, and trigger on their path towards first node. For each one getting in the area of that node, find new path towards next node. And when you change the final destination point, destroy the nodes and create new ones.

    Should work!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yo,

    I'm fighting with one function call. Basically I'm using tokenat to get global variable, and send its value to function. But it doesn't work! The variable is not being called ( as it's being taken as a string). Don't know if it's a bug or by the design - can anyone help?

  • Shadow of the Colossus intro... if I think about it, the whole game is like one epic cut scene,

    Devil May Cry, original, the intro, and talk with demon spider.

    Besides that , you've mentioned most of it.

  • Hello,

    (@Ashley... Do not take this the wrong way)

    I must say i am disappointed with Scirras treatment of 2 major platforms (atleest in my humble opinion) wich are iOS and Android.

    To release an app/game for those two we are totaly left to mercy on 3rd partys solutions wich have questionable, half baked products...

    I am no programmer (this is why i chose Construct in the first place) and this is really frustrating.

    I just managed to complete export to iOS with Ludei... and that worked OK (aldo they have shitty instructions in their plugin wich lead me the wrong way).

    And as i wanted to do the same for Android i realized that theres no way i can have official leaderboard in my game.

    As i understaind, Ludei seems to be leaving further development to community... wich will maybe work and maybe not...

    Please correct me if i'm wrong.

    Is there any way that Scirra can develop some quality solutions that will work as they shud... leaderboards, in app purchases etc?

    If it is the question of money... tell us, maybe community will contribute? After all, it is for benefit of us all, no?

    Thank you.

    Yes, you probably right that it is a matter of money. Ashley would have to hire someone to get it done, as he himself has full hands of work atm. This has been talked about countless of times, that it is loads of work. But again, you're right - people would contribute. But would that be enough? dunno

  • Hi,

    I would like to suggest adding an extra optional parameter input field, which would allow to pick/create object via its written name.

    I have large number of Tiled Backgrounds Each requiring to be created on the run. My option right now is to make loads of events, each creating one of those tiled bg's. With that extra parameter filed, I would cut down on events to just one ( with the name being called from variable, that holds different value per sprite that is used as spawn). Same would go for PICKING, FOR EACH loop, and other that require to pick object from the pop up box.

    What do you guys think, would it be useful for ya too?

megatronx's avatar

megatronx

Member since 25 Sep, 2008

Twitter
megatronx has 1 followers

Connect with megatronx

Trophy Case

  • 16-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
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies