lucid's Recent Forum Activity

  • System - always

    -------Set Sprite2 Position to Sprite1

    MouseKeyBoard - On Left Button Clicked

    --------Set Sprite2 Visible - Visible

    --------Set Sprite1 Visible - Invisible

    MouseKeyBoard - On Left Button Released

    --------Set Sprite2 Visible - Invisible

    --------Set Sprite1 Visible - Visible

  • yeah, I was just suggesting another way of doing it

    after switching the animation, did you use a Play Animation action?

  • Is there a spot to implement Global Variables? I'd like to have a running tally of each "Enemy" in the game, so that when it's down to 0, you win the game.

    When you go to select your objects, for actions and such, choose the system object. It has global variables. Just make an action. System-Set Value

    For this particular case though, unless you don't really have all those enemies there, are you're making like a wave of enemies and behind the scenes you're creating them offscreen or something, There is actually a System expression that counts objects CountMatching(objectname). it counts the objects currently picked, so if you don't have any type of picking condition before you use that expression it will just count all the objects of that type in the layout

    [quote:19ilh352]What's a good way to do a transition between 2+ layouts? Can you do this with 2 doors, 1 in each room to take you into the other? If so, how best would this be accomplished?

    I've never worked with multiple layouts other than quick experiments so I'll leave that one to someone else

    [quote:19ilh352]Sometimes my character or one of the enemies will be sent outside of the room, how do I fix this neither of us can leave the layout? Also, sometimes the physics will get wacky and when an enemy pushes me up or down through a platform I teleport through it, any method to alleviate this issue?

    first question is do you mean physics like the Physics behavior? or just the general sense of the word physics and you're using the Platform behavior? if physics behavior what actions are you using to set the speed or strength of the enemy? If platform, what actions are you using to simulate pushes?

  • there are many ways to do this of course. personally I would probably take what you already have there, and make it an invisible character sprite. Then add 3 sprites, one for each age, and add the animations to that individual sprite, and then always set it's location to the invisible character sprite (when it's the selected age), and make them invisible or visible as needed. Just seems a less messy way to handle the animation sheets. Each age has it's own full set of animations in a separate sprite.

  • ok, I guess my real question is what does

    x^y

    do when 0<y<1

    I keep trying to google it, but not getting what I'm looking for. I'm used to exponents providing very different answers to multiplication, you know

    5*3=15,

    5^3=125

  • That good news, about the performance. Now, how easy is it to access object's instances in your event system. For example(a pretty extreme case actually), I have an object. It collides with something, and I want to either destroy, or lower life on certain objects, but only in that area(say a bounding circle). How easy is it to access only those specific instances of said object that are within the circle, and for (example) weaker enemies, destroy them, and stronger enemies simply lower life?

    you could do it with a distance expression, but you said circle, so for this example, I'll use an actual sprite circle:

    let's say you put several life lowerable objects in a family called Hurtable

    Victim----on collision with Something:

    --------------------Move SplashCircleSprite to Position of Something

    -----For Each Hurtable

    -----------Hurtable is overlapping SplashCircleSprite

    --------------------------------Hurtable private variable Energy minus 10

    Hurtable private variable Energy equal to or less than 0

    -------------------Destroy Hurtable

    The 'picking' system automatically (in ways defined by the plugin) picks the objects relevant to the condition. So any actions under a condition, so for example:

    On Sprite Collides with OtherSprite

    would automatically only act on the particular Sprite(s) and OtherSprite(s) involved in the collision

    [quote:2lknlr9u]

    Also, say I want to create my own plugin for sounds, using maybe OpenAL, or cAudio. In your XAudio2 plugin, it has 64 channels, but the I would do it would not to have channels. The audio API manages all of that(including mixing) and simply returns pointers to sounds, which you need in order to stop or change position(3d sound) of the currently playing sound. Now if you can't easily return/send actual C pointers to/from the plugin, I could simply create a data structure to hold all the pointers, and return an index. But, can you describe a little how that would work, either pointers or simple integer indices???

    you can do any type of c++ you can think of in a plugin, period. plugins are able to communicate with eachother if necessary and pass any type of data through void pointers.

    you design the interface for the construct user within the confines of the ActionConditionExpression system.

    Basically, you decide a list of possible actions (things they can do, ie. Set Reverb to 10), conditions (things they can check, or have triggered, If Player is within hearing distance of Sprite), and expressions (GetCurrentReverbLevel).

    as i said before though, the plugin is just c++, you can include whatever libraries, and do whatever you'd expect to in a c++ program

    ...

    ....just reread your question, and I realize I misinterpreted it maybe, so

    you mean return these pointers to the Construct user?

    yes, indices in a vector, list, etc, would probably be the simplest way to give these to the enduser. The XAudio plugin has AutoPlay features that does something similar already. You can Autoplay sound "blahblah", and if the user still wanted to know what channel it was autoplayed to they can Set Private Variable MyPV to XAudio.LastChannelPlayed.

    The beauty of it is how flexible it is, though:

    I'm not saying this would or wouldn't be a good/bad idea, but an example of how many different ways you could approach it if you wanted to be weird/creative. for example you 2 plugins, a soundmanager plugin and a sound effect plugin. when a sound was played through Soundmanager, it would create a soundobject, which they could then move around the layout with it's xyz coordinates, even add a behavior to if they wished. It could automatically destroy itself when the sound completed playing. You actually would need SoundManager at all except for caching sounds or whatever prior to playing them if you were doing that.

    welcome to the boards, btw

  • What does this do exactly? Interpolates based on timedelta? The lower the framerate the closer you are to one of points? If the lerp value from 0-1 doesn't change, then how does it ease in/out?

    just think of it like lerp(a,b,0.5)

    each tick it would go halfway to the destination.

    as it got closer it'd be a lower and lower distance.

    so it's a nice smooth slow down that looks like a cosine curve

  • Oops...

    Also, a simpler method is also just move Moveable toward Bolla with a negative speed

  • What they said

    I have something to add to what deadeye said though.

    Sometimes the gameplay idea might emerge from the story.

    Maybe the character is up against overwhelming odds and he can't hack and slash, how does he do it? He avoids enemies, and steals intelligence info from within their base. So you brainstorm on how to translate sneaking and stealing into fun gameplay.

    Maybe the story says your character is a flower creature. who needs to be pollinated every 5 minutes. Then you figure out how to space out pollination opportunities to make it challenging and fun.

    The point is. From your story, determine what your character must do, and the unique challenges they face, and then figure out which parts of it can be turned into gameplay. Make it a point to imagine your character doing what he or she does in a story or movie context, and not just automatically picture them running andjumping. Then brainstorm how it can be turned into gameplay. That way you're not just shooting in the dark for "an idea"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • K let's start with what I do understand.

    I know the purpose of timedelta, to help you keep game speed consistent even when the fps changes. and I know that its the amount of time that has passed since last tick

    I understand lerp(here.x,there.x,0.5). And why that would give you a nice ease out from one location to another. And I also understand how I can use ^timedelta in my own caps just based off this with no greater understanding

    What I don't understand is the math logic behind using timedelta as an exponent

    Supposedly this is how ashley did it in some example, and I tested it with unlimited and fixed frames and it seems to keep the speed consistent.

    I just really want to understand why, mathematically, this should work. It makes no sense to me at all. If someone understands the math behind using an exponent, and how it creates the correct effect, id appreciate it. And just in case: no, I'm not satisfied just understanding That it works. I want to know Why it works

  • I'm not at home testing this, just looking at the screeshot, but I notice, your many apps have a ui with lots of text and buttons and sliders always. I understand how this can be done with objects and events, but its a tedious process. Are you using a particular plugin or technique that's cutting out some of the tedium, or are you just more patient than me?

  • 2 is how id do it if dealing with 1000's of tiles

    As long as its not too important to keep track of offscreen enemies navigating the terrain or anything

lucid's avatar

lucid

Member since 16 Jan, 2009

Twitter
lucid has 25 followers

Connect with lucid

Trophy Case

  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

24/44
How to earn trophies