LittleStain's Forum Posts

  • You do not have permission to view this post

  • I don't understand your question..

    What are you trying to achieve?

    "How do objects communicate?

    How do I let the other 3 layers know that they are supposed to be destroyed?

    "set layer.Hp to dirt.Hp""

    You want to destroy something, obviously, but the whole layer?

    Why does the layer have hp (Layers don't have variables, do they?)?

    Why do other layers get the same hp?

    Couldn't you use a condition to determine what the hp should be if dirt = 50 if granite = 100, etcetera?

  • You do not have permission to view this post

  • Greetings Construct 2 community, I am currently looking at buying game creation software for my own personal use for myself and games for friends/family.

    After a week of research I have my final choice down to two packages, Clickteam Fusion 2.5 or Scirra Construct 2. If you would answer some questions I have, it would help my final decision.

    1: can I truly create a game with ^NO^ programming whatsoever?

    2: can someone who pretty much sucked at school and mathamatics create games? (for example, like Jetpack Joyride)

    3: can I output native windows code in a single .exe file?

    4: Would you recommend I buy a book to learn it, or pay for an online course?

    5: is it viable to create a roleplaying game with this software? (no, I'm not silly enough to expect to make a new Skyrim, but something like the old bards tale games?)

    Thank you

    Why not download the free version and try before you buy?

  • My capx is just an adaptation of yours..

    Link to the latest beta is on the bottom of this page:

    https://www.scirra.com/construct2/releases/r218

  • From the link zenox98 gave:

    Making AJAX requests cross-domain or in preview

    By default, browsers block AJAX requests across domains. This means, for example, a game on scirra.com can request other pages on scirra.com, but cannot request pages on facebook.com. This is an important security feature of web browsers (it is not specific to Construct 2 or its AJAX object).

    Also, when previewing in Construct 2 the game runs on localhost. This counts as a different domain to the rest of the internet, so typically AJAX requests to any web page will fail during preview, unless the server explicitly allows cross-domain requests.

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    This will enable AJAX requests from any domain, but you should still be aware of the possible security implications of this. For more information on cross-domain requests see HTTP access control on MDN.

  • Google search, first result:

    https://www.google.nl/webhp?sourceid=ch ... ain%20font

  • Is there a reason why you are not using built in movement behaviours?

    This would be easily solved for example by using bullet behaviour with bounce of solids and giving the zombies solid behaviour as well..

    If you want to do it your way, you might want to do a distance check, or an is overlapping, or an on collision and have one of the zombies stop moving for a while (maybe looking around dazed?) or any other behaviour you'd like..

  • If at all possible I would choose to use animations/frames instead of different sprite-objects..

    I've heard of (never used) a third party plugin "nickname" which could possibly make your work easier, if I remember it's use correctly..

  • One way to do it is set a variable to 1 on key pressed, start a timer for a certain period, and on timer set the variable back to 0..

    if the key is pressed while the variable is 1, you have your double tap..

  • Not very beautiful, but working..

    Just to give you one possible idea on how to do something like that:

    https://dl.dropboxusercontent.com/u/485 ... royed.capx

  • Do you have any conflicting events?

    Something like "on any key released" or "key is not down" or anything else that stops animation?

    Like for example event 39 and event 56 in the capx you shared?

  • [Offtopic]

    imothep85, I really love your subtle use of the caps-lock-key..

    [/Offtopic]

    [Ontopic]

    Would you be willing to test my capx?

    https://dl.dropboxusercontent.com/u/485 ... ebook.capx

    I couldn't get an AppID and/or Appsecret, because my Facebook isn't letting me Log in to the devellopers section..

    [/Ontopic]

  • if the tiles are alligned perfectly you could right-click the animation editor and use import as spritestrip..

  • > with the lowest instance you mean the one with the highest y-position?

    >

    > I guess a system for each sprite ordered y ascending event setting a variable to the sprite.uid and picking sprite by uid = variable would work..

    >

    I tried this earlier, but I feel like I didn't nest a few of the commands properly ~

    Without seeing your events I wouldn't know, maybe true, maybe false..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads