Stencyl 2.0 - Official Release (Updated Apr 21)

Photics

  • *
  • Posts: 719
One of the things I don't like about Stencyl 2.0 is that it seems harder to detect when a collision IS NOT happening. Previously, I could try to use IF and Otherwise. Now, I'm not sure what I'm supposed to do. I'm trying to create sensor actors, but it seems tricky. The collision blocks only appear for related events. I tried pasting the collision blocks into an "Updated" event... but I got an error :P

Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

rob1221

  • *
  • Posts: 9424
Make a boolean attribute and set it to true on collision.  At the end of "Always", set the boolean to false.  Higher up under "Always" check if the boolean is false, and if so then a collision is not happening.

Photics

  • *
  • Posts: 719
Make a boolean attribute and set it to true on collision.  At the end of "Always", set the boolean to false.  Higher up under "Always" check if the boolean is false, and if so then a collision is not happening.

I tried changing the value of the related attribute by setting it to "True" in the "Always" section... then "False" in the collision section below the "Always" event... it just always stayed "True", regardless if a collision occurred.
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

rob1221

  • *
  • Posts: 9424
Did you confirm that in "Always" but above the part where you set the value to true?

Photics

  • *
  • Posts: 719
Did you confirm that in "Always" but above the part where you set the value to true?

The "Always" event was above the "Collision" event.
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

rob1221

  • *
  • Posts: 9424
I mean within the "Always" event.  Did you check if the boolean is false before you set it to true?

Always
---if boolean = false
------print false
---set boolean to true

when colliding
---set boolean to false

Dizko

  • *
  • Posts: 451
Don't the collision behaviors have a drop down that you can change to "wasn't hit"

Photics

  • *
  • Posts: 719
Don't the collision behaviors have a drop down that you can change to "wasn't hit"

It does, but it doesn't seem to work for me.

If I put it in the collision event, it doesn't trigger.
If I put it in an "Always" event, the game crashes.
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

1MrPaul1

  • *
  • Posts: 1268
I use on ground checking with this method and it's always working fine. But i'm using not always but do every n seconds event. So, try event
Do every 0.02 seconds, if this also not working for you, probably problems somewhere in other places.

Photics

  • *
  • Posts: 719
I use on ground checking with this method and it's always working fine. But i'm using not always but do every n seconds event. So, try event
Do every 0.02 seconds, if this also not working for you, probably problems somewhere in other places.

I have an idea to fix this problem. Basically, it involves two collision groups. This is probably not a great solution for every game, but it works for my current game.

The main point is this... Shouldn't this be easier to do?
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)


Jezus101

  • Posts: 60
cd Mydocuments
cd Stencyl
./sw.jar

There seems to be a bug in the new settings. It's not storing changes to the joystick background or button in iOS. I've tested a few times and Stencyl is not keeping the custom images I enter.

Apologies if this has already been fixed. I haven't read all the posts yet.

Rob

  • *
  • Posts: 1268
There seems to be a bug in the new settings. It's not storing changes to the joystick background or button in iOS. I've tested a few times and Stencyl is not keeping the custom images I enter.

Apologies if this has already been fixed. I haven't read all the posts yet.

Are we talking about recent 2.2 release?
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title