sparkfeather's Forum Posts

  • No worries, thanks for such a fast and informative reply :).

    Problem is, this was actually with me using Hamachi, so...?

    Welp I've been trying to work out some kind of solution with what's

    available but still haven't gotten it functioning for me yet.

    Goodluck working on that fix for it, hope it works for you :)!

    And goodluck with all your efforts into this plugin, it's already

    a great asset for those wanting multiplayer but unable to understand

    the difficult manual setup programming with python, look forward

    to future releases :3.

    ---

    edit:

    Not sure how it was able to work with others, or if it's just something

    strange occurring with me but, I've made some sort of progress.

    The user hosting the game only gets group 'ServerGame' enabled,

    because it's locally enabling the groups.

    So where as the person connecting to the host get's group 'ClientGame',

    which set's the lights to the players and has all of the gameplay script

    running, the host has none of that.

    I've just added in the 'trigger once' in 'ServerGame' to enable 'ClientGame',

    and sure enough I can now see the players. though the positions are

    screwed up and other bugs, etc, this at least explains why it wasn't

    displaying anything for the Host.

    Though as you mention that people haven't had this trouble over LAN,

    I'm not sure why I require enabling ClientGame to see anything at all?

    It shouldn't have worked for anyone if this was the problem.

  • Looks great,

    however as for your demo, it's brilliant that you took the time

    to make one and very grateful for that, though it is extremely buggy?

    I had to set the global player value to 1 instead of 0 which it was

    so that when the second player joined, it's value would reach the

    'max players' and the client/host would connect.

    Now, after connecting only the person connecting to the host seems

    to actually make it in-game, and there's also the problem of the

    'GameOn' message being sent continuously resulting in massive lag

    after a few minutes of it being sent.

    Do you know how to/have any fix for these issues? Or at least any

    suggestion as how I might go around fixing them?

    Again great!! plugin, hope you keep up the epic work :)

    Just without a functioning demo it's difficult to work out how to use this.

  • I have an object with the turret behavior, and I've changed

    between assigning a target with both 'acquire target' and 'add object',

    with different objects, and different ways to activate the script from

    keyboard buttons to 'start of layout',

    however the turret object never rotates?

    By the descriptions of it's properties, i.e. 'turret rotation' and

    'predictive aim' I would assume it should...however, it simply isn't?

    Am I suppose to do some additional step besides targeting an object?

    I'd really appreciate some help with this,

    nothing ever seems to function for me =_=;

  • Like I mentioned Kyatric, it was finding the php file sometimes just

    not straight away originally, so that wasn't the issue.

    Also many times I clicked a lot but it didn't do anything, and I waited

    a very long time to see if it was just a possible major lag as you

    mention waiting for the request/response, however it didn't. Then

    clicking for awhile more it eventually popped up.

    So from testing it didn't really seem to be a matter of delay.

    Thanks a lot about the error tip, that was never mentioned in the

    tutorial so I didn't even think of that or try it because I wouldn't

    expect something so simple to error. Maybe it could have been erroring

    a lot but without checking for that as you suggest I'd have no idea.

    I'll make sure to add that for all ajax testing in the future :)

  • That might be it...but wouldn't that mean it should just require 2 clicks,

    want to focus and one to press the button?

    I know flash sometimes is out of focus but you just click inside the

    canvas to focus it, not move the mouse? Maybe it works differently for

    html5?

    Thanks a lot for the links, but even though I read through it, a lot

    still makes absolute no sense. Even though the tutorial up there is

    in response to questions about keeping scores, all it pulls is php,

    and every time anyone seems to ask how to differentiate what you grab

    from the page your told off because that information is too difficult

    for these forums?

    Yet I still struggle to understand how all that is suppose to be done

    within the php document, what about the tag thing for construct2,

    what is the point of that if the data is always stored to the single

    LastData variable. Unless you assign that to another variable you won't

    be able to store more than one data coming in, how would you spread that

    across a page with multiple highscores?

    I know this is off topic but so many confusing questions.

    Your latest demo looks good though, any chance you might be able to share what you have in the php and the construct file? That'd be a massive favor I'm sure for many people on this forum including myself.

    Really appreciate your response b781rev, and has informed me of more than

    I knew before, so I thank you greatly for your input, but for the original

    topic, nothing in your latest response really explains how that new

    php would work flawlessly while the other would have delays occasionally?

    Unless I've overlooked something you were referring to?

  • Hrmm, that isn't giving me any issues at all o.o?......

    Thanks a lot for your response, any idea what this means though? o.O

    Tested it 50+ times and not a single time it faltered,

    however I did discover a bug.

    If you refresh the page, and don't move the mouse at all, the clicking action isn't registered.

    As soon as you move the mouse and click again, it registers it.

    (This however is not the reason I have been having issues because when

    I rapidly click the mouse I also move it around to different locations

    on the image so this wasn't the cause, it is however a bug).

    "Are you using your own server or is it online? "

    This is using my online server

  • Thank you very very much for responding ^^;

    -

    Why does reality hate me so =_=

    Today, with 0 changes, it's just decided 'oh hey, he has asked for help, now that we have screwed with him lets start working k?'

    =_=;

    Though, it doesn't seem to always want to work still, sometimes it'll

    act like it did yesterday where I'll have to be clicking it for more

    than a minute before it decides it wants to pop-up (about 1 in 20).

    Here's the file

    http://ifile.it/dvy560i/ajaxtesting.rar

    edit:

    I should also note that, as you mentioned about it only acting once

    it's been able to receive the requested information, it may be considered

    as just a delay, but I have clicked it multiple times today with it

    not working, then waiting 5 minutes and still nothing, then clicking

    a few more times and it eventually displaying the text right after

    that.

  • I've been using this tutorial -

    scirra.com/tutorials/61/ajax-example-with-construct-2/page-1

    • to try and get an understanding of ajax/php calling to create

    a high-score table for a game, however I haven't even been able to

    get past the understanding of Ajax due to some, confusing issues?

    The tutorial is that you press a button, and hey-presto, the text

    is suppose to pop-up.

    I've been using the supplied files at the end of that tutorial,

    (obviously changing the .php file path).

    For some, unknown reason, it simply isn't functioning for me like it should.

    I've clicked the button, and nothing happens, so I have kept clicking

    it, and clicking it, and clicking it a lot and then the text randomly

    pops up for I have no idea what reason.

    I've tried multiple times, and it's eventually popped up at different

    times, sometimes when I'm sure I wasn't clicking on the image.

    Also I have clicked the image a single time and waited 10+ minutes,

    the text never changed.

    Does anyone know what might cause this, has anyone had the same problem

    and found a solution, please I'd really appreciate whatever help or

    experiences can be shared.

  • Thanks so very much for your incredibly deep response and example!!

    Sorry this reply is so late, had a lot of things come up recently,

    and this took forever to workout.

    Eventually though, thanks to your demo :D, I did manage to workout

    a solution. Your example certainly gave me the headstart I needed,

    but still I found whenever I wanted to control the motion myself,

    it would effect it's the location independently of objectA.

    However finally, finally @ *collapses* /knows I fail,

    I managed to get it down to a very simple solution :D....

    Based on your offsetting the location from ObjectA,

    I have a Sprite object with 8direction behavior, that stores it's

    original location in a private variable on layer start.

    Then it adds any change from that location, to the variable

    that ObjectB is offset from ObjectA.

    Here's the .cap - http://ifile.it/9op16gx/movewithrelative.cap

    Again, thank you so very much, I know this end solution feels blindly

    simple for an experienced user, but I couldn't have gotten here without

    your help, thanks :D!

    Also I never knew about lerp, definitely something that should come

    in handy in the future from what I read about it after some searching :).

    Thanks for sharing your experience :3!

  • What I mean is,

    is it possible to move objectA with objectB, however you can also move

    objectB around as it's movement still stays relative to objectA.

    So for random example, say I had an airplane that was moving along

    the screen, but I wanted a bird to stick with the airplane as it moved,

    however I also wanted to move this bird around that location.

    Could anyone please let me know of a possible solution to this?

    I'd greatly appreciate any advice :)!

  • Ahh yeah heh, hadn't thought of it like that, thanks :)

    Hopefully it does come in handy for someone ^^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks very much for your time in responding Steven.

    It seems for some reason I'm incapable of finding a solution to the problems

    I have that can actually be solved in construct, without posting a topic

    on the forums 5 minutes before hand and embarrassing myself =_=;;;

    It ended up being a needlessly silly wrong event setup, because of some

    overlooked confusion.

    I had the resume/play actions under the 'is jumping' event, and I only

    just now discovered/realized/found the problem. I remembered somewhere

    somehow finding out about how even though the events are written as

    'resume current animation' and 'play current animation', if an animation

    is already playing, it will cause that to pause.

    And so because there wasn't a 'trigger once' condition, it was looping

    the resume/pause of the animation and never made any progress until

    it was falling.

    Fixing it with a 'trigger once' has got it working cleanly now.

  • Just a quick question,

    With the 'Platform Behavior' behavior, is there something hard-coded

    in that which stops an animation being played while the character is

    'jumping'.

    Because no matter what I can't seem to get it to play the animation

    while the character is leaping upwards, however when it's considered

    to be in the 'falling' state per the platform behavior variables,

    the animation will play.

    I have no pause action anywhere, I've tried both resume and play

    actions when the character has jumped, however none of them work,

    even though the character's animation will start playing when falling

    back to the ground.

    Is there some way to fix this so that the animation doesn't stop?

    Or am I the only one getting this problem?

  • Thanks alot!, I never expected the code to be wrong cause I didn't see it different elsewhere and it worked perfectly on the original (though I did use '-' instead of '+' for the set x/y cos/sin area because for some reason the '+' didn't work but '-' did).

    After fiddling with it for awhile I did get it working with that code

    with the new objects, thank you so much!! I really needed this.

  • I want to be able to rotate my object around a certain point,

    however it doesn't seem to be functional, as in an actual

    program error?

    To explain myself I need to start from the start of my search for a solution-

    While looking for solutions, I started with finding this topic-

    http://www.scirra.com/forum/plugin-ik-solver-2_topic37671.html

    I opened this, but it wasn't quite what I was looking for, however

    I was still using the scene for experimentation.

    I then found-

    http://www.scirra.com/forum/rotate-around-point_topic37367.html

    And I used this on one of the objects in the IK solvers example scene.

    Not wanting to loose what I had, I saved, and it gave the message

    about being from an earlier version and am I sure I wish to save

    as I won't be able to use it in an earlier version, I said yes.

    The solution above I liked, so I tried to use it in my project scene,

    it wasn't working. it spins madly as if it's out of control when

    rotating, instead of the original experimental scene.

    I tried to also use this solution-

    http://www.scirra.com/tutorials/44/using-a-pivot-point-for-rotating-objects

    And that didn't work either.

    Now, I have created a new project, with the same object name and

    variables as the original scene and copy-pasted the code over,

    and that still span wildly.

    I then created a new object in the original experimental scene,

    applied the same code, and found it does the same thing.

    If you slow it down by using 'every 1000 miliseconds' you can

    see that it seems to rotate by 45 degrees, while in the new

    scene I created and tested it, it rotates by 90 degrees (an extra detail,

    the scene where it rotates 90 degrees, the distance between the

    objects location and the rotation point is about half).

    Here's a .cap of the experimental scene with the old object working,

    and the newly created object not functioning the same way.

    (use left click for functional object, right click for non-functional)

    http://ifile.it/634isr5/rotationdemo.cap

    Basically my question is.....

    What are we meant to use, if this isn't functional?

    Is it still possible at all?