olivete's Recent Forum Activity

  • Hello!!!!!

    Guys I got a situation here and I am not sure what is the solution for it, I guess I will need array, but please give me some advice so I can figure this out.

    My problem is this: I will have a character in a fight game. On beginning of each round, I would like to random some values, lets say 1 to 5 and this value will represent a weapon ID.

    This char has a variable called weapon and the random will say which weapon this char will get, and in the game I already have 5 objects using these names: 1 = dagger, 2 = sword and so.

    So on start of my layout, weapon = random (1,5) and I would like to Pin this number to my char. How is that possible? I need an array to do that?

    Something like: if weapon = 5, pin mace to char.

    Hope you can understand me and help.

    Thanks alot!!!!!!!

  • Hello!!!

    I am trying to create a game that will be a player vs player and gonna have lots of items to these very players.

    What I thinking is to do something like mybrute, for those who knows it, but add lots of skills, maybe classes and for sure many weapons and other equipments.

    Can you please advice me how to do that, I mean is, I am very new here and just start to learn, so I am concerned about this game size and if will be light so players can play it online without have to download tons of kb.

    What I did so far was put a background, 2 chars and made them fight like 2 rounds, just to test moviment and stuff.

    Now I want to add at least 20 weapons, some cloths and make players be able to change hair color, cloth color and other customizations like hair type, tattoo and so.

    So I have 2 questions besides any advice you could give me:

    1. If this game have lets say 1000 items (weapons and so), but the player just use one sword for a combat he did, will he need to load all the others 999 items? Or is there a way to make player only download whatever he needed for that combat?

    2. I wish to make this game read a info file that will tell what players did in this combat in each round, for example, round 1 player A cause 10 damage and player B cast a spell... Is possible to create this game as a sorte of replay player? I mean, I will create all animations and make it read this info file so the players will see in their monitor what happened in this combat. Did I was clear with that explanation? Hope so :P

    I guess this it!

    Any advice will be very very welcome!

    Thanks alot!!!

  • Okkkkkk I was in the right path!

    Let me understand that... doing this will make my capx goes larger in size, however my html website will only load the images when they needed right?

    Another question, if instead a .jpg file I wish to add animation, should I create a .capx with only a animation inside?

    Thanks alot zatyka!!! Very helpful!!!!!!!!!!!!

  • Thanks alot zatyka!

    I will keep on reading it cause I did not figure it out yet. I guess I understood your explanation, I just need to figure how to make it work.

    If you have any capx file as example I would appreciate alot, if not, no problem, I will learn this one way or other :P

    Thanks!!!

  • I have read what you sent me and I guess this it, but I could not figure how to make it here in my project lol

    Do I need to add webstorage, Ajax or something else to my project?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    Guys I am working on a game that will have lets say 100 items. Each item will be a sprite, right?

    My question is, once I have a event on my game that says, character use sword ID1234, can I pull this sprite sword from a folder instead I have it preloaded in my game layout?

    I would like to have a option to each time my character pickup a new weapon, my game read this event and load this image from a location instead I have hundreds images loaded already.

    Hope you can understand my question.

    Thanks!!!

  • You need a Image Point on the player for the sword, and for it to be assigned for each frame of the animation. I'm not a good drawer, but this stick figure should show you what I mean.

    http://dl.dropbox.com/u/108799982/Capx%20Demos/Sword.capx

    Thank you for help!!! This result is what I got here, but lets say you need each hand position you made, you have a diferent image of this sword.

    Something like this:

    <img src="https://dl.dropbox.com/u/83579758/attack_animation.png" border="0" />

    You see that player hand start at top and goes down? For each of these 3 frames the axe it uses has diferent images.

    I am not sure If I can make it, is there a way to do it?

    Thanks!!

  • Hey guys!!! So far I am getting alot of progress with my game, thanks to you guys help :)

    So, I got up to the point that I dont know if is possible to make.

    I was able to pin a object (a sword) to my sprite (char). When my char is walking the sword pin is just fine. I used Player.ImagePointX("weapon").

    But this works fine because my weapon has only one frame, I mean, its just a weapon pointing lets say 45 degrees.

    When my char use the attack animation, this very char will have his hand in three positions, up, mid and finish the slash with the bottom position, so the sword in its hands will have 3 different sprites.

    So that is my problem. How can I pin this attack with this sword? Is that possible to create?

    If more details is needed I can send my capx.

  • Hey Roal, thanks alot for send me that, but I cant open it yet cause I am using a free version. I hope today later on I get the rest of the money to get me a personal edition, just need few more sells :P

    Thank you very much already, I will check this as soon as I get my C2 to latest version and will be back to let you know!

    Thanks alot!

    EDIT: Ok, got it updated :)

    Mannnnnnn I guess this is it! I dont have free time right now but this afternoon I will be checking it and try to do the same thing just like I need.

    Thank you very much!!!!!!!!!

  • Hi!

    Sorry to ask this, but I tried this for more than 10 hours and I cant make it work without bugs :(

    I am creating a game that gonna read some output file and based on that file it gonna make my chars/npcs/and so move around.

    For now, I just want to learn how to make my NPC goes to where I want, but I cant make it work correctly.

    What I mean is something like this:

    Sprite walk 100px to right (using walking animation), once it gets there make a attack animation, turns around and goes back to its start position.

    I tried bullet behavior, plataform, physics and so, nothing is working, I mean, I got it moving but at somepoing my animation bug.

    Is there any way to make a sprite do this?

    If you guys want, I can send you a example file to what I am trying.

    Thanks alot and sorry to ask that. I have been reading all this forum and tutorials and could not figure this out :(

  • Thank you very much Rabid! I got now a better picture of the whole cenario. I hope someone else can give me more advices.

    Thank you alot!!!!!!!!!!

  • Hello!!!

    Have been reading tutorials and manuals for quite some days now and finally I came to this forum so I can ask you guys few questions. Hope you dont mind. :)

    I have made several searchs but I could not find what I really wanted so I am sorry to come and ask, but I have no other way.

    I am very new to C2 and was reading and watching video tutorials and got the basic idea of this program.

    What I want to do is create a fight game. A very fast example would be a game like mybrute.com.

    So I what I would neeed is:

    1- A player character with basic status like damage, hit points and chance to dodge.

    2- This player will levelup and each level will give him some skills and/or equipments.

    3- Save all this info in a database (MySQL for example) and make the game read this so it can create the fights between players.

    4- To fight a player just click another player name, and the program check all this players stats/skill and start a fight. So all random stuff based in formulas like playerA hit playerB, xx damage is done, and so. No player interaction with these fights.

    I guess basically this is it.

    So is Construct 2 able to do this? If so, does anyone can please lead me to tutorials or examples any advice?

    I would really appreciate any help!!!

    Thank you and sorry to ask that much!

olivete's avatar

olivete

Member since 20 Mar, 2013

None one is following olivete yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies