theubie's Recent Forum Activity

  • Check the coordinates for Player.X,Y and Spawner.X,Y and make sure you've got the right objects selected.

    Disable all three of the requirements, then enable them one by one until it stops working and we can go from there.

  • I hate to sound like a broken record, but there are so many posts in this thread that also sound like broken records...

    Complaining that a tools is the BEST TOOL TO DO X ever, then bashing it because it is designed for platform Y is similar to making this argument:

    My coffee maker is the best coffee maker I've ever seen! It's so easy to use and it makes the best coffee I've ever tasted. I just wish it would make carbonated beverages. I love my caffeine to be in soda format, but all my coffee maker will make is coffee which I don't like the taste of...why can't Gevalia change my coffee maker to make soda instead? It would taste better and everyone would buy it!

    The bottom line is, C2 is a HTML5 based engine. That's all Scirra is responsible for.

    Here's an idea: You want native code, write a native exporter. C2 can be written to do this. You want Scirra to do that for you, but it doesn't fall into their plan. I want an awesome survival game like Unreal World, only with a lot of added features to it...but those features don't fall in line with Sami's vision for his game...however he has added in mod support. I can either praise him for his great game, then bash him for not doing things the way I want, or I could write mods that add in what I want in the game.

    Actually, I decided on option 3: Write my own game, but then again I'm crazy like that.

    The point I'm trying to make, again, is that C2 is and IDE for HTML5. If you don't like the HTML5 platform, you're on the wrong IDE even if you think it's the best IDE out there. If you don't like what it exports, write an exporter or if you don't know how to do that and have a bunch of money find someone who does and throw cash at them to do it.

  • Something like this

    <img src="http://www.infinitepossibilitygames.com/demos/MobSpawnerExample/conditions.PNG" border="0" />

  • Add a condition to the one that checks distance. If you want it to spawn say...15% of the time, you'd use something like Compare Two Values-> random(0,100) <= 15.

    Another thing to consider: This action is going to spawn everytime you run through the loop, so if that spawner object stays within the spawn distance you put in there, it's going to start popping out mobs at a high rate. The random statement I just mentioned will address that. You might want to add in one more condition to limit the number of times it can fire over a given period of time, like Every 1 second or something of that type.

    (just speaking from experience there)

  • Try Construct 3

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

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

    In this case, you would set the sprite not to an animation frame, but to a completely different animation. You can then check the animation name (sprite.animation) and based on that you can assign the HP, etc. That would require events like the ones in the other example...you're just checking Sprite.Animation rather than the Variable but the methodology is the same.

    Either way, you're going to need an event for each mob so I'm not sure if either way saves on total number of events.

  • shinkan I already offered that type of solution (1 sprite, 4 animations) in my first post. He wanted more info on how to do it this way. I'd go with the 1 sprite method myself.

    If you're going that route, you wouldn't even need the variable or function. Just set animation to choose("mob1",etc) when you create the mob. Even less to code that way.

  • Capx?

  • Definitely a good start.

  • Quick and dirty prototype:

    <img src="http://www.infinitepossibilitygames.com/demos/MobSpawnerExample/mobspawnerexample.PNG" border="0" />

  • The www works with Ajax...as long as your initiating url also has the www prefix. They have to match, otherwise it falls to your Access Origin rules.

  • Stomphoof You posted that you're on the free edition...this is where Families would be your friend.

    Without it, you have two directions that I would look into:

    1, you could create a local variable and set it with a choose action..I.e. choose('mob1','mob2','mob3','mob4'), then use 4 sub events to check to see if the local variable = mob1 or mob2, etc...then spawn your sprite.

    2, you could create 1 mob sprite and give it 4 different animations. Use the choose function to randomly set one of those animations, then check the sprite to see what animation is running and set any instance variables on the sprite to correct values (health/hp, movement speed, etc.)

    Again, this is a LOT easier in the licensed version using families.

  • To the point you made about the recent release notes: I'd much rather the developers of the game design software stick to adding functionality to help in creating games and let the people who write exporters and wrappers focus on exporting and wrapping html5 games more efficiently.

    Scirra's a small team, and they only have so many manhours to devote to various bug fixes, expansion of current capabilities and development of new capabilities for their IDE. Not all C2 developers develop for mobile platforms, however almost all C2 developers use the IDE for developing games. Yes, everyone would like to have their specific development need addressed right now. There is a list of things I'd love to see C2 able to do, but I know that 85% of them only would be beneficial to a handful of developers.

    In the end, your frustration is valid, but the way development in general and game development in specific works is that you use the tools that make your life easier until they've done all they can for you, then you get to work finding a solution for the challenges you face until you either get past those challenges, someone else comes up with a solution for you, or you give up.

    I hate to sound heartless, but that's the life of a developer.

theubie's avatar

theubie

Member since 13 Jan, 2013

None one is following theubie yet!

Connect with theubie

Trophy Case

  • 11-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies