Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ShinKaigan

Pages: 1
1
Fixed Bugs (3.x) / Re: Actor Not Appearing Where Collision Box Is
« on: March 31, 2013, 03:13:59 pm »
I should probably note that this is stencyl 3.0 and I don't have the option to not recycle the actor. :(

2
Fixed Bugs (3.x) / Actor Not Appearing Where Collision Box Is
« on: March 31, 2013, 02:52:32 pm »
I am completely baffled at this new issue I ran into. I am creating a card game where an Actor (the card) spawns at a given location on screen and is anchored to it. After I use the card, the Actor is then killed. The issue occurs when I try to spawn another copy of the same card after the screen has moved. The visual of the card appears at its old location, however everything else about the card (collision box, clickable area, etc) is where it is supposed to be.

I strongly suspect that this has to do with recycled actors, because if I kill two cards, the next two cards are bugged like this but the third card is perfectly fine. I have tried every which way to solve this but I couldn't figure it out. Attached below is a demonstration of the bug.

Image 1: I had drawn three cards.

Image 2: After using a "Bash" card, the actor is killed. Then I put the command to draw another card and instead of appearing where it should on screen it looks like this.

Image 3: Future cards appear where they should. Additionally the bugged actor still behaves as if its still there. You can see it in the empty slot, it has collision preventing the most recent card from sliding over. Additionally if I click on the blank square where the card should be, it still triggers any behaviors/events the card has.

3
This is very useful so the help is much appreciated! I can't help but feel that I have not addressed some aspect of my problem but I can't for the life of me express what it is (its early morning here thanks to insomnia haha). However for the scope of this question, its solved.

Thanks for the help!



4
I have tried looking around the forums as well as fiddling around with this myself but I still can't quite find an acceptable solution.

I have Actor A and Actor B on screen. When I click on Actor A, it creates Actor C relative to Actor B's location (IE. +32 of Actor B's Y Position). I have originally used Game Attributes to constantly set Actor B's X and Y coordinates and then have Actor A's behavior constantly get them but I realized that as I add more actors, there will eventually be tons of game attributes which may hinder saving. Is there a way to do this without using game attributes?

On a related note, how can I get/set a value of an attribute in Actor B using a behavior in actor A? I have seen the tutorial on stencylblog but that only deals with getting and setting attributes of two COLLIDING actors. What if the actors aren't colliding? I had also solved this originally using game attributes... but I really have to stop using them to solve all of my problems.

Any help would be greatly appreciated.

Pages: 1