Cant insert a number argument in a custom block (ANSWERED by mdotedot)

Fool

  • Posts: 88
So I have this custom block. See the image attached.
Inside it, I'm writing a routine to check tile data at some given coordinates.
This was originally running in an event, but I decided to make it a custom block to compactify some
already ugly code.
Long story short, I dupe in the purple "get row y" block, and try to swap out my old 'ytile' argument, for the custom block argument 'Y'.

Yes I'm well aware I'm  putting an X into the Y slot. No thats not a dirty joke. Its 1AM where I'm at.

But the thing is, it just won't accept the X. Or the Y.

And stuff like this keeps happening with stencyl.
I'm starting to second guess purchasing it at all.

Any help would be appreciated, because right now I just can't see why this won't work.

Edit: Thanks mdotedot. I took your advice, and when I recreated the block, I used anything.

« Last Edit: March 18, 2016, 01:57:53 pm by Fool »

mdotedot

  • Posts: 1654
In general it helps if you provide as much information as possible.
That includes logfiles.

Also please supply the Stencyl Version (that is in the logfiles : another reason to supply them!)

For this specific situation show us your custom block code. Use the camera-icon to create an image.
Also a screenshot of the 'Create a New Custom Block ' dialog where you have the block details/ spec and fields would be helpful.

There is an ANYTHING Type which should accept everything but there are limitations what you can use in the custom block.

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Fool

  • Posts: 88
Problem fixed. I deleted the custom block, started fresh, and the new block doesn't have the same problem as the old.
Think I assigned the wrong type to the parameter during creation.