Sean Cameron's Recent Forum Activity

  • This is going to help so much. I've been wanting example files for the action rpg I'm making instead of always fighting with it, this is a godsend.

    EDIT: The cap needs the color overlay effect which I can't find anymore. Any chance someone can upload that so I can take a peek under the hood?

  • You could simplify that by using sprite -> pick by comparison -> distance(.x, .y, Sprite2.x, Sprite2.y) is less than however many pixels. You could also use a pick closest condition with that to make sure you get the closest one.

    Awesome I'll do that!

  • Since I'm new it would take a long time to make an example up, but you should be able to detect whether the enemy is close enough using something like this:

    <img src="http://dl.dropbox.com/u/19777553/forum%20images/Untitled-1.jpg">

    That's what I used in my rpg to detect whether a caveman is close enough for the hero to talk to. As for chasing I'm working on the same thing, experimenting with bullet and 8-dir behaviors. Leaning towards bullet. You can set the enemy's angle towards the player every X ticks and set it to move forward till its in range.

  • Oh that's funny. This was the first tutorial I watched when I was just starting out!

    Thanks for being so helpful today.

  • Is there a faster way than repeating copy-paste to make collision masks across all of a sprite's animations?

  • Figured it out!

    I have an event sheet I've been including in new layouts with the hero movement script. I guess that event sheet points to a particular instance of the hero and pulls that instance onto the new layouts. In this case the hero was pulled into the new layout offscreen and the sword was snapping to it...

    Thanks for all your help!

    Edit: Yeah it is global, that was part of it I now realize.

  • Pretty much what I'm doing here, which is very frustrating. I must have something going on elsewhere that is messing with things.

    Edit: Figured it out in the debug. Somehow there are two instances of the Hero sprite. The challenge is finding the dupe.

    Edit 2: Construct is pulling an extra copy from a layout that I haven't loaded. I didn't realize it would load instances of sprites from layouts other than the one in use.

  • Argh, actually that was just something stupid I did while rewriting the event to make a screenshot. It's not working even when I scripted it

    Allways -> Sprite2: set position to object Hero (image point "righthand")

    Am I correct then that I should be getting the desired result?

  • I've added an image point called righthand to my hero sprite's animations, and I have a sword sprite. I want to constantly set the swords position to the hero's imagepoint. I tried:

    <img src="http://dl.dropbox.com/u/19777553/forum%20images/code1.jpg">

    And the sword sprite (sprite 2) is nowhere to be found. It disappears from the screen to who knows where. Just wondering if I am using this action correctly, or if I have to find another way.

  • However, those are good tricks to know Arima, thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm curious, what does adding sounds to the sounds folder in the project explorer accomplish?

  • Lucid: Yea, I use the spritefont plugin a lot. It's a pity about the source but it seems to work well enough! (thanks)

Sean Cameron's avatar

Sean Cameron

Member since 26 Jan, 2011

None one is following Sean Cameron yet!

Trophy Case

  • 13-Year Club

Progress

13/44
How to earn trophies