User Tag List

Results 1 to 7 of 7

Thread: Help with my engine?

  1. #1
    No Products Registered

    Join Date
    Jun 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with my engine?

    I'm trying to build my own engine with the help of some tutorials. Things seems to be going fine so far, but I am having some troubles making an elevator. What I want to accomplish is, when the player is standing on the elevator and the up key is held down, the elevator starts to move up. When the key is released, I want the elevator to move back down to where it started.

    I'm having 2 problems with this.
    1.) I'm not sure how to get the elevator to move back down. I mean, I can get it to move back down, but I don't know how I would make it stop where it is suppose to stop.
    2.) When I hold up, the elevator starts to move up, but the player falls right off. I can't get him to stay on it.

    I know I'm not the best at explaining things, and if you would like to take a look at what I've got, I uploaded the file here:
    http://www.megafileupload.com/en/file/72358/Project-Scrolling-mfa.html

  2. #2
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with my engine?

    I fixed it for you. All of the changed code is in the group Elevator. It's actually one line less than before, no need for fastloops in this case. Link: http://clickalize.com/Project_Scrolling_Fixed.mfa

  3. #3
    No Products Registered

    Join Date
    Jun 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with my engine?

    Nice, you did that quickly. I have no idea what you did though. I'm guessing it has something to do with the start of frame event that makes it stop where it's suppose to?

  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with my engine?

    I changed it around a little bit and reuploaded the example, so download it again from the same link to see the changes. All it does is move everything up as long as the player is pressing up and the detectors are overlapping correctly. And when the player isn't on the elevator and the player isn't pressing up, it goes back down. The last line is so it doesn't get stuck two pixels into the ground, making it look a little nicer. The difference from the last upload is how this one checks when to move down. I removed the unneeded Alterable Value I had, and replaced it with an action that checked overlapping with a backdrop. And it wasn't the start of frame action that did it, I actually removed it in this one anyway. That just set the Original Y value of the elevator.

  5. #5
    No Products Registered

    Join Date
    Jun 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with my engine?

    edit:

    i see. so how can i make it so it keeps going down even if you are holding up while not on the elevator... right now I can jump off and hold up, and it will stop moving down

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Apr 2008
    Location
    California
    Posts
    357
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with my engine?

    Sorry to bother, but I noticed something very interesting to me, brandon just said Group Elevator, aren`t the groups prenamed to a number, if not could you tell me how to edit them. (exuse the grammatical error with the period and the comma, I don`t know how to use a canadian keyboard, yet.)

  7. #7
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with my engine?

    Quote Originally Posted by Iwantmyrpg
    Sorry to bother, but I noticed something very interesting to me, brandon just said Group Elevator, aren`t the groups prenamed to a number, if not could you tell me how to edit them. (exuse the grammatical error with the period and the comma, I don`t know how to use a canadian keyboard, yet.)
    When I create a group, it asks for a name, as well as an optional password. So every group is named. To make a group, go to the event editor, right click on a number to the left of an event and select New, and then Group.

Similar Threads

  1. The Arcane Engine (RTS / RPG Engine)
    By Ryan in forum File Archive
    Replies: 36
    Last Post: 4th October 2009, 04:46 AM
  2. 3D engine
    By Werbad in forum File Archive
    Replies: 25
    Last Post: 21st October 2008, 04:42 PM
  3. 3D Engine using HWA
    By Werbad in forum File Archive
    Replies: 98
    Last Post: 11th August 2008, 01:15 AM

Posting Permissions

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