Ribis's Forum Posts

  • The problem with that is that I want to have about 100 weapons and this method would be very time consuming my way of having all the variables in a family and setting one weapon active and only choosing the stats from the active weapon would be the easiest and smallest way, only if I could figure out how to use the stats from the active object.

    if you have to make 100 weapons and you don'w want to use one sprite for all of theme (considering 2 animation per weapon) you are right, will be very confusing.

    if you use a similar weapons, you can choose different way to achieve that, one for example is just make an invisible sprite with all variables that spawn just another sprite with the design of the weapons.

    you can also divide the weapons for typology. like make 5 sprite for all weapons... for the variables, you can put into the family and make there.

    it depends how you make the weapons... so I suggest you to try without any graphics, just make a square with different frame of fire/reload and try the best method for you

  • I ran experiments with bouncing most of those terrain objects down to paster objects at the start of the layout. It turned out to be far less efficient than just multiple instances of the same objects (which are never checked for collision). It also takes a huge hit to the vram. A tilemap would either lack the diversity or require a significantly higher amount of work. If I put in the time to do all that, and it has that many possible outcomes, though, it actually seems as though it might be heading more intro the realm of huge vram consumption like the paster objects.

    So I fully understand it looks strange to use so many instances, but I don't see any better solution in C2 and it has an almost negligible impact on performance so long as I'm not targeting mobile (where fillrate would be the problem).

    I like your method how you making the levels, but how big is the layout?

    for example you can use a tilemap (without any collision, just for design) to make some graphics and reduce the instance of the level... it's hard to make the combination with a tilemap, but you can also make 2,3 or more tilemap with different texture and mix together

  • Well.. I've been working on a weapon "upgrade" system. So I have a ton of variables... Pistol_Capacity, Pistol_Damage, Pistol_Speed, Pistol_RealoadTime... Then I have Shotgun_Capacity, etc... SMG_Capacity, etc, Rifle, Grenade Launcher, blah blah blah. I create an event sheet for upgrading all of the pistol attributes. Six jillion lines of code later Im done. Now I copy it. I have to go through each line - selecting each variable - and scrolling through the hundreds of variables to replace pistol_[...] with shotgun_[...]. Now if I could highlight the events, right click and select something like "replace variable" - Have one input box to select the variables present in the highlighted events - select the one I want to replace (say... pistol_damage) - and a second input box i can put in "shotgun_damage" - and presto. Do it for each variable and BAM saved myself an hour.

    look, if you have Pistol_damage and Shotgun_damage, you have to edit 2 variables, make just weapon_damage..

    When I was making a weapons system where it was possible to select different bullet and upgrade the weapons, I made like 25 variables for one sprite with 20 different animation, where all weapons are.

    for example, in your weapon: Pistol_Capacity, Pistol_Damage, Pistol_Speed, Pistol_RealoadTime...etc you made also variables for shotgun? or bazooka? etc... that will be crazy if you make all variable for all different weapons...you have to make a system like a "class"

    would be easier if you make all variable for all weapons, like: Capacity_weapon, damage_weapon, extra_damace , speed_rate, BullePerShot,reload_time, frame_velocity, reload_frame, type_of_bullet...bla bla

    and with this, I remember I made 4 different weapons in 4 minutes, like an uzi, shotgun, rifle shotgun and rocket rifle, just changing the same variable of the weapons.

    you can also saved the variables into an array, or where you want... and if I miss something, like if I want to add another strange weapon, just add another variable or a boolean for that kind of weapon.

  • > I added a new feature today about mapping! See some of my C2 workflow:

    >

    >

    >

    How many objects in this layout demo at last?

    ( I guess that it might more than 10,000. )

    yes, I see a lot of instance placed for making the terrain... I would use tilemap for this kind of work, that would be difficult to make all combination for the tilemap, but the result could be almost the same...

  • gyan333

    nikosurfing

    you have to update construct2 to open my file

  • Is there any way to get HEX coding system rather than rgb or any other...

    You can use SetColor Effect... and you can set the RGB of the sprite...

    for example, when a player touch a red color, you can change the 3 variable to make the color red... etc

  • gyan333

    quick test:

    demo: http://www.umbriadesign.it/example/exported/TestCamera

    download: http://www.umbriadesign.it/example/TestCamera.capx

    I use big Images, I didn't optimize...

    let me know if you have some question

  • I want to create this effect as shown in the video. Help me please?

    a quick try, ask if you need more help

    demo: http://www.umbriadesign.it/example/exported/FancyCounter/

    download: http://www.umbriadesign.it/example/fancy_counter.capx

    have fun

  • SkyLionGames

    Well, now I don't have so much time to see the videos... but I make a easy example for you..

    https://www.umbriadesign.it/example/save_tile.capx

    with this, you can save a tilemap (you can draw, select the colors...etc) save, and load.... you can also save a file to see how is saved that file..

    this is not an array, but the array works similar....

    I will make another example with array when I have time

  • Does the Twitter plugin works? I never used it though but as far as I know the facebook plugin doesn't work. I'm wondering whether the Twitter plugin works.

    The facebook plugin doesn't work, check this topic:

    I will release an integration of facebook in php with a lot of function for the game app (hi-score, achievements, notification...)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • why you don't wan't to use array?

    if you generate terrain in tilemap (or not) or other stuff, the array will help you to save all data... for example, if a player visit a new planet, when the terrain is generated, you can save it and reaload when the user go again in that planet with a if condition:

    if the savegame of that planet exist, load it, if not generate a new one.

    arrays are very poweful especially to save data...

  • Ribis Do you have a date when it will be available? Thank you.

    8 January will be ready to sell inside my store, but I would like to publish inside the scirra store, so, the 8 for sure will be ready to download and use

    EDIT: i didn't have time to finish at 8*, I'm still finishing to write the documentation (almost done)

    thank you

  • "Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

    You should fix that problem inside the facebook app, you have to change the url there, or inside the plugin?

    anyway, Intel XDK support an ajax plugin?

  • Hi, i am creating ios and android game. Inside the game, i would like to show how i am doing compare to other friends in facebook.

    I imagine i would also need a mechanism for logging onto facebook, get permission through oauth...

    I read https://www.scirra.com/forum/viewtopic.php?f=147&t=129460&p=910820&hilit=facebook+friend#p910820 and it seems like Ribis didn't post his stuff on store.

    Is there plugin or example i can use?

    Thanks

    kimtaein1

    Hi, in these days I had no time to continue the documentation, but I almost done everything...I mean, the project works very well, but I have to make a tutorial how make personal feed story and how use the Graph of facebook to make works everything and I almost finish the documentation.

    https://www.scirra.com/forum/viewtopic.php?t=164418

    you can see here the features of the project, I integrate almost all feature for the game part.

    I added a notification too for the games, so, if you beat your score friend, your friend can receive a notification of that and more options...etc

    when I finish, I will update the post with the link to download the file

  • can we post screenshot also?

    yes, you can do whatever you want with this "plugin"

    basically, when you share something in facebook (feed story, post, etc...) you can set the url of the image before send the ajax, so that you have to save the screenshot in your server, and after that with ajax POST the url of the picture.

    you can also make your own script and save in my files to work around facebook API.

    for more information, read this topic: https://www.scirra.com/forum/integrate-your-app-to-facebook-last-sdk-works_t164418