A beginner with lots of questions!

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • So currently I'm developing a shooting platformer. Now I'm very stuck! I have a bunch of questions to ask. I would really really appreciate it if you could answer just one! :)

    1. I have multiple sprites (active images) for the same character. These sprites are used when the character is wielding different weapons (for example Player is a sprite with no weapons but Playerwep1 is a sprite with images of the character wielding a weapon). Whenever I pick up the weapon and tell fusion to destroy the current sprite and replace it with "Playerwep1", the scrolling camera no longer works. How do I fix this?

    2. How can I make an inventory that allows you to see which weapons you have and switch to them?

    3. How can I make the sprite have a shooting animation that creates an object and shoots it in a direction?

    4. How can I incorporate ammo?

    5. How can I make a sound emitter? (Plays sound within a certain area and radius of my frame)

    6. How can I make a save function?

    7. How can I incorporate health and or lives?

  • I feel like this might be too many broad scope questions for one thread.. but who knows? haha I'll try to answer a couple.

    1) most likely you have a scrolling event centred on the object that you are destroying (the sprite with no weapon) so instead of centring on the sprite, I'd use a separate object for the camera to scroll.

    2) there are a million ways.. this is a broad question - I'd suggest looking into subapps to create an easy pause menu

    3) again, a million different ways, just a simple idea to get you started (for the player to shoot an object when he's facing right)
    (Conditions)
    player presses button
    + Direction = Right

    (action)
    play animation shoot
    launch object in right direction

    4) you could use a counter or an alterable value. So you need to check before you shoot that you have ammo, if you do have ammo then you subtract 1 from the ammo on each fire. So to add to your previous example

    (Conditions)
    player presses button
    + Direction = Right
    + Ammo value > 0

    (actions)
    play animation shoot
    launch object in right direction
    subtract 1 from ammo value

    5) you could create an invisible object, place it where you want the source of the sound, then find the distance between the emitter and the player and set the volume of the sound accordingly

    6) look into using the INI or Array object, there are loads of tutorials.

    7) again, use either a counter or an alterable value to keep track of this data
    eg. on player hit - subtract 1 from health counter
    on health counter = 0 - kill player

    you'll probably want to tackle each of these things one by one, more slowly.. you want to have a good understanding of how things work before you go tackling save features/inventories etc.

    Check out my Game on Itch.io
    Please login to see this link.

  • Thank you! I will look into all of this. You helped me fix the camera issue too. :) But I want to make my shooting animation and event only occur when the sprite "Playerwep1" is in use, how can I do this?


    ------------------EDIT---------------------------
    I got that figured out but I don't know how to make the bullet move and as for the sound emitter, how can I make it gain volume if the player nears it?

    Edited once, last by Senoirchippy (June 26, 2014 at 1:20 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!