LittleStain's Forum Posts

  • I've been very busy working on my own project.

    Did make some attempts but wasn't working as well as I'd hoped.

    have an idea to fake it though, but will take some tweaking to get the feel..

  • NaN means not a number.

    Webstorage is saved as a string.

    You are forgetting to convert the string into an integer.

    if you put int() around the webstorage like in the above example by anata, you convert the string into an integer.

  • Choose new project, scroll down untill you find infinate jumper, and click to open the example.

  • You should check if the webstorage key exists before setting ismuted.

    add a subevent to the on start of layout and set it to

    Local key exists "ismuted" - and add the events to set from webstorage as actions to that event.

    you can't set ismuted to a value that doesn't exist.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • example

  • I used:

    platform is overlapping gravzone - platform set angle of gravity : gravzone.angle

    and rotated the gravzone so it's angle was in the direction I wanted the gravity to go.

    It still has some issues, primarily in switching between gravityzones, but It should be possible with lerp.

  • majikk

    My solution works perfectly well if you choose to create an object instead of spawning it.

    With System create object, there is no need to have an instance on the layout.

    With spawning there is no need to have an instance either. You just have to make sure the object that is doing the spawning is on the layout. So only if this happens to be another instance of the object is it necessary to have that instance on the layout, but because you were talking about a catapult, I would expect the spawning to happen there.

  • You could use the event:

    System pick random platform

    • create object at: platform.x,platform.y+50

    (the plus 50 mis to make sure it's above the platform.)

  • lennaert was working on the same or at least similar thing, he might be able to point you in the right direction.

  • Most of what you are asking is explained in this:

    Ghost shooter tutorial

    Following it will help you understand Construct2 better, I recommend it.

  • You probably should use a third party plugin to get something like this done.

    I guess using an Iframe to display the video should work, or maybe the video plugin would suit you better.

    Use the search or go through the plugin part of this forum to find one that works.2

  • Two words: Colission polygons

    I agree with what Aphrodite said though, if you import all as big images you might run into performance issues, so I would look into chopping things up in pieces or using tilemap to repeat certain parts.

  • CJK

    That will help spawning a random object, but I was under the impression topic-starter wanted the possibility to spawn a specific object by referencing it in an instance variable.

  • That is one way of doing it that works.

    Because the check events are subevents of the creation, only the created instance is affected.

    Picking is an important part of creating events in Construct2, you will always have to tell the program which instance to act upon. In this case it's clear it's the created one.

  • set the frame in an on created event. that way only the created instance will be picked and changed.

    your system compare event doesn't pick any instances, therefor all instances are affected.