R0J0hound's Recent Forum Activity

  • I wouldn't use a different object type for each card. You should just need two. One for the positions and on with all the different cards as animation frames.

    Then it can be done simply with two events:

    http://dl.dropbox.com/u/5426011/c2/cards.capx

    You can then pick a card at say position 6 with two conditions:

    Sprite: instance variable position=4

    Pick Card by UID: Sprite.card

  • Just give the enemy sprites a high x speed away from the player:

    http://dl.dropbox.com/u/5426011/examples7/knockback.cap

  • Yep, everything about global objects is preserved with a layout change.

  • For smooth flashing:

    Once per second:

    Set Opacity: 50*sin(time*360)+50

    Twice per second:

    Set Opacity: 50*sin(time*360*2)+50

    Or for a traditional flash (visible/invisible):

    Set Opacity: 100*(sin(time*360*2)>0)

  • What is it? It's an object that creates a silhouette form the object it's attached to.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know of any off hand, but a way you could go about it is have two sprites for the player. One of the legs and on for the torso. Put the hotspot of both sprites at the waist and give the legs the platform behavior.

    Then use an event like this:

    Always:

    ---torso: set position to legs

    ---torso: set angle toward position (mousex, mousey)

  • Just use the flash action with a duration of 0.

  • Do it like this for paths relative to your cap/exe:

    AppPath & "\bla\bla.exe"

  • You could try this:

    every tick:

    ----scroll x to player.x

    player y > scrolly + 100:

    ----scroll y to scrolly + 100*dt

    player y < scrolly - 100:

    ----scroll y to scrolly - 100*dt

    The numbers may need some tweaking, but that makes the screen scroll when the player goes 100 pixels from the center of the screen, so you essentially get a dead zone where no vertical scrolling occurs.

    Another approach that doesn't have a dead zone, but is less jarring than scollto, is to always scroll toward the player at a speed proportional to the distance the player is from the center of the screen.

    every tick:

    ----scroll to position: scrollx+(player.X-scrollx)*2*dt, scrolly+ (player.Y-scrolly)*2*dt

    The numbers can be tweaked to adjust the responsiveness. As it is now it will scroll to exactly where the player is in half a second if the player is not moving.

  • Try using the "Path" object. It's "Path.AppData" expression should give you that folder.

  • You're welcome. I sent you the file via PM.

  • There was some php text in the middle of your cap. It only affected the event sheets and was able to recover 98 of the 125 event sheets. I'd recommend running checkdisk or some other file system checker on your hard drive to ensure it's integrity.

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 157 followers

Connect with R0J0hound