User Tag List

Results 1 to 10 of 10

Thread: Alternating Layers?

  1. #1
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Alternating Layers?

    Hey guys, this pertains to my stair setup im using in my CV fan game. I've got them working the way i want (FINALLY!!lol) but im running into a snag; there are several times when i have 2 sets of stairs that overlap each other i.e while walking up one set, there is a set directly above it. What creates a problem is when the player overlaps the steps above, it just stops him. I have the stairs set up as jump through obstacles using the PMO. I DID find a way to work around this somewhat, i just set up and event like so:

    Player Sensor is overlapping Right Stairs > Set Left Stairs to Layer 2

    I have my characters and backdrops on layer 3, so by saying that when i overlap the stairs that overlap each other, i set the stairs above to be set at Layer 2. This works.....once. Thats the problem lol. Is there any way i can set an event similar to that but to swap layers out as i stand on certain stair sets? I hope this makes sense. BTW i have tried setting up an event like this one in reverse to do the same thing for the other stairs but it doesnt work. It just seems like it only swaps layers 1 time and thats all.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    CV... Castlevania? That'd be very cool to see!

    Have you considered giving the stairs an internal flag which you can toggle on and off, and to make them behave as jump through platforms only when the flag is off? You could set it so that when the player is walking on right-facing stairs, all left-facing stairs flags are turned on, and vice versa, and to make it ignore collisions with them if that flag is on.

  3. #3
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DistantJ View Post
    CV... Castlevania? That'd be very cool to see!

    Have you considered giving the stairs an internal flag which you can toggle on and off, and to make them behave as jump through platforms only when the flag is off? You could set it so that when the player is walking on right-facing stairs, all left-facing stairs flags are turned on, and vice versa, and to make it ignore collisions with them if that flag is on.
    Yep I was working on Vamprotector ( a Castlevania/Contra hybrid with my bud Darkmanx) but i needed a little change of pace so even tho there was one floating around i wanted to do my own Dracula's Curse remake actually i dont think a full version ever got released so woohoo!!! lol. Anyways, thats a good suggestion dude, i'll give that a shot! Basically i have the stair setup ran through alterable values, Stairs = 0 (of character) then his animation and controls are unaffected. Stairs = 1 is just made solely for his stair walking, slowed movement for the steps and to activate the stairs as a platform. When i have him set at 0 he just walks right passed them, just like normal Castlevania, but when you press up it switches to 1. I'll give the flags a shot dude, havent used them for ages! (at least since i learned about alterable values haha) I'll keep you posted on the progress of the game!

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Hi WarMachine. There are open source CV Stairs and Axe examples on my website. Maybe they can help.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Marv! Yeah man i've checked the stair example and couldnt make heads or tails of it honestly lol. Just too advanced for me. What i have is really simplified tho i just got to get the stair overlap out of the way and im good to go and i never checked the axe tutorial, always made it work without a hitch the way i have mine set up for axes and holy water is just assigning them the pinball movement with the lower directions applied, that way they just lob naturally. Not sure if thats how your example works but if not i can make one for you

  6. #6
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    DistantJ, worked like a charm dude!!!! Thanks for the advice! Here's how it went:

    Internal Flag of "Left Stairs 0 = on" > Move "Left Stairs" to Layer 3
    Internal Flag of "Left Stairs 0 = off" > Move "Left Stairs" to Layer 2

    Then i set this up:

    Repeat while "W" is pressed
    Player Sensor is overlapping Right Stairs
    Player Sensor is overlapping Bottom Stair sensor > Set Stairs to 1 (which activates his stair movement) > Set Internal Flag of "Left Stairs 0" off
    Stairs of Player = 0

    Then i ran the event below which made it happen:

    Stairs of Player = 0
    X Player Sensor is overlapping Right Stairs > Set Internal Flag 0 of Left Stairs on

    The X of course is negate, but anyways, worked like a charm! Thanks again for your advice man!

  7. #7
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would've liked to use that stairs example for my game to put CV-like stairs in it but it doesn't support jumping on or off stairs.

  8. #8
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Corlen View Post
    I would've liked to use that stairs example for my game to put CV-like stairs in it but it doesn't support jumping on or off stairs.
    Patience my friend, i havent worked on this yet but as soon as i get it implemented i will share it with you

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Warmachine View Post
    DistantJ, worked like a charm dude!!!! Thanks for the advice! Here's how it went:

    Internal Flag of "Left Stairs 0 = on" > Move "Left Stairs" to Layer 3
    Internal Flag of "Left Stairs 0 = off" > Move "Left Stairs" to Layer 2

    Then i set this up:

    Repeat while "W" is pressed
    Player Sensor is overlapping Right Stairs
    Player Sensor is overlapping Bottom Stair sensor > Set Stairs to 1 (which activates his stair movement) > Set Internal Flag of "Left Stairs 0" off
    Stairs of Player = 0

    Then i ran the event below which made it happen:

    Stairs of Player = 0
    X Player Sensor is overlapping Right Stairs > Set Internal Flag 0 of Left Stairs on

    The X of course is negate, but anyways, worked like a charm! Thanks again for your advice man!
    Really glad it worked! Happy to help!

  10. #10
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Warmachine View Post
    Patience my friend, i havent worked on this yet but as soon as i get it implemented i will share it with you
    Thanks in advance Warmachine. I did it before in a game that was a clone of CV but I think my method was highly inefficient.

Similar Threads

  1. Layers - Low fps! Paralax Alternative to layers?
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 6th June 2013, 03:34 AM
  2. Collision issue with layers, also still having slowdown problems (with layers)
    By jregork in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 28th July 2012, 06:23 AM
  3. Problems with Alternating Scrolling
    By evilpantsmaster in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2008, 08:10 AM
  4. Layers again
    By Jarzka in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th October 2006, 06:42 PM
  5. Layers
    By xerus in forum Multimedia Fusion 2 - Technical Support
    Replies: 27
    Last Post: 1st July 2006, 02:34 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
  •