Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: Issues with Programing a FPS Tower Defence.

  1. #1
    No Products Registered

    Join Date
    Apr 2010
    Location
    Louisiana
    Posts
    11

    Issues with Programing a FPS Tower Defence.

    Hello forum.

    I am in the process of developing what I guess you could say is a first person shooter. The player can only move left and right with the arrow keys and must aim with he mouse. The num pad is used to switch weapons. The game plays like a tower defend game. Shoot the enemies down before they get to your base. A paint assembled screen shot is show below to serve as an example as to what I'm after.
    [img:center]http://i217.photobucket.com/albums/cc74/Van_Kentha/example.png[/img]

    Hopefully this all makes sense to you. I am encountering quiet a few problems.

    1. I know how to do a scrolling camera and it working so far. The hud wraps around the window making it look like only the back ground is moving. However, the play is created by at least 15 active objects. In order to keep them all in the same place I have them all moving when the player moves by the mouse key. The main Hud object(the orange frame and window) is set the stop when it hits the edge. However the other 14 object will continue to move and will leave their respective spots. Thus I believe that I need to find a away so that when the Main Hud part stops, I need the the other objects to stop as well. Does anyone know how?

    2. The second problem I'm encountering is my cursor. When I changes it's shape to one of my crosshair objects by using the change shape command, I get an orange box with the image transparent instead of the transparent object. The box also changes color based on the surface it is currently over. Also when switching weapons my crosshairs change fine but they also suffer from the orange box and only part of them is shown. For example switching to the rocket launcher only allows 1/4th of the crosshair to be shown along with the orange box. I see a resize option for crosshair but its grayed out. Does anyone know how to activate it or know an alternative solution.

    3. The last issue I have is dealing with programing weapons. The machine gun shown on the bottom left I am trying to program it to run its animation for as long as the mouse button is held down. Running a loop won't work and I do not see a holding the mouse button down. Does anyone know a solution to this problem.

    Thank you all for you time and I look forward to a response.

    -DF

  2. #2
    Clickteam Clickteam
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773

    Re: Issues with Programing a FPS Tower Defence.

    1) I think you're overcomplicating things. Just put the HUD on a layer at the front with a coefficient of 0 so it stays still, always centre the scrolling position at the crosshair, and then make the crosshair move left/right to move the player.

  3. #3
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071

    Re: Issues with Programing a FPS Tower Defence.

    3) Go into the ANimation Editor. You need to create two animations, Stopped and Shooting, Shooting must be infinitely looped.

    Now go into the Event Editor and create these Events.

    Fire Button Held?
    -Change Animation to Shooting.

    [color:#FF0000]X[/color] Fire Button Held?
    +Shooting Animation is Currently Playing?
    -Restore Animation Sequence

    Now it should work. PS. Happy Birthday and Welcome to the Forums, I hope you have a nicer time here than me.

  4. #4
    No Products Registered

    Join Date
    Apr 2010
    Location
    Louisiana
    Posts
    11

    Re: Issues with Programing a FPS Tower Defence.

    Sorry I took so long to reply.

    Jamie - I am rather new to the tool and am not familiar with layers. I'll see what I can learn so that I may try your idea, but can you possibly point out any tutorials about Layers?

    Dragonguy - Thanks. Where can I find the option of, (button) Held? I don't seem to find anything similar in the Keyboard section.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,219

    Re: Issues with Programing a FPS Tower Defence.

    Scrolling:

    1: Make the playarea as wide and high as you want the level to be. It should be alot bigger than the window size.

    2: In the event editor, make an event to always centre scrolling at 0,0 from the Crosshair.

    Layers:

    1: Press ctrl+k to show the layer menu (in the frame editor).

    2: Add a new layer and put the HUD in there. The crosshair must NOT be in this layer.

    3: You can move the layers above and below each others, depending on which one you want to have in front / in the back etc. The HUD must be in front.

    4: Set the x and y coefficient of the HUD layer to 0. This way it will not move even if the level is scrolling.

  6. #6
    No Products Registered

    Join Date
    Apr 2010
    Location
    Louisiana
    Posts
    11

    Re: Issues with Programing a FPS Tower Defence.

    Thanks popcorn, Everything is staying on screen now. However now I'm having issues with the cross hair. If I use the cursor object, I get the problem stated in question 2. If I program it to my mouse, some how my movement is being limited. At first I believed t was somehow bumping into my guns or hud, but I tested the movement by it's self, it's limited to a short X like range. I can only move the target within the smaller center and a little bit into the 4 diagonal area of the Hud.

    Thanks again. Hopefully I can be rid of these errors soon.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,219

    Re: Issues with Programing a FPS Tower Defence.

    Do not use the Mouse movement. Instead, set the movement for the crosshair to static and in the event editor tell it to always position to xmouse and ymouse.

  8. #8
    No Products Registered

    Join Date
    Apr 2010
    Location
    Louisiana
    Posts
    11

    Re: Issues with Programing a FPS Tower Defence.

    Yes, that worked just fine. Thanks a bunch.

    Would you happen to know where is the Fire button held event Dragonguy was speaking about?

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,924

    Re: Issues with Programing a FPS Tower Defence.

    Under the player one joystick object. If you have a key like Shift or Control assigned under the controls setup dialogue, it'll have the same effect as pressing Shift/Control or the fire 1 on the joystick if one is plugged in.

  10. #10
    No Products Registered

    Join Date
    Apr 2010
    Location
    Louisiana
    Posts
    11

    Re: Issues with Programing a FPS Tower Defence.

    Thanks a bunch. I have just one more question for the moment and I think that will be the end of the errors for a while.

    I'd like to make a reload period. I want the program to wait lets say 3 seconds before reloading the ammo of the machine gun?. I know the timer object is involved but what would I do?

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. 1000 creep tower defence
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 30th March 2012, 07:48 AM
  2. Tower Defence Help
    By Destroyer0203 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st January 2010, 01:33 AM
  3. how do you make a tower defence game?
    By brad in forum Multimedia Fusion 2 - Technical Support
    Replies: 25
    Last Post: 22nd November 2009, 08:53 PM
  4. Tower defence
    By Algul in forum File Archive
    Replies: 14
    Last Post: 1st June 2009, 01:22 PM
  5. Tower defence Range
    By Zmaster in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 19th October 2008, 09:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •