Search found 53 matches

Re: How do I check for a certain tile at any given position

TileMap object has a number of expressions to convert tile coordinates to screen coordinates and vice-versa. PositionToTileX(x) PositionToTileY(y) SnapX(x) SnapY(y) TileToPositionX(x) TileToPositionY(y) Use TileAt(x,y) to get tile ID. As for your second question, it depends on your game. If this is...
by larynachos
Mon Nov 13, 2017 1:11 am
 
Forum: How do I....?
Topic: How do I check for a certain tile at any given position
Replies: 4
Views: 220

Re: How do I spawn an object and change its animation

Are you assigning any value to that instance variable after you spawn a new instance of the sprite? You need to specifically assign the proper value, unless you want it to be default. I'm guessing your default value is 'slime'. Same applies to the animation. I had it set as a number, 0 for slime, 1...
by larynachos
Wed Nov 08, 2017 3:38 am
 
Forum: How do I....?
Topic: How do I spawn an object and change its animation
Replies: 3
Views: 127

Re: How do I check for a certain tile at any given position

Quick follow up, one of my events breaks when I leave the initial screen of the layout and move around the camera. I have an event set up so when I click the tilemap in an editor window (separate layer, paralax 0,0), but it selects tile id -1 instead of the tile I clicked on. I'm assuming it's not t...
by larynachos
Wed Nov 08, 2017 1:02 am
 
Forum: How do I....?
Topic: How do I check for a certain tile at any given position
Replies: 4
Views: 220

How do I spawn an object and change its animation

I'm working on a level editor, and when placing enemies I have it set to spawn a sprite on the object in the editor menu, but here's the catch. I'm trying to get away with using just one sprite object, and using different animations to represent different objects/enemies. To identify which object is...
by larynachos
Tue Nov 07, 2017 11:58 pm
 
Forum: How do I....?
Topic: How do I spawn an object and change its animation
Replies: 3
Views: 127

How do I check for a certain tile at any given position

I'm building a level editor, and right now I'm trying to use tilemaps for both terrain tiles and objects (like boxes). I would like to check when the level is tested for box tiles anywhere in the level (by tile id), delete the tile, and replace it with a sprite object instead (so I could make it int...
by larynachos
Tue Nov 07, 2017 9:47 pm
 
Forum: How do I....?
Topic: How do I check for a certain tile at any given position
Replies: 4
Views: 220

Re: [PLUGIN]Newgrounds plugin Alfa by Raiper34

No rush, but any updates?
by larynachos
Sun May 29, 2016 2:41 pm
 
Forum: Completed Addons
Topic: [PLUGIN]Newgrounds plugin Alfa by Raiper34
Replies: 49
Views: 10145

Re: Seamless Transition Between Audio Files

Instead, you should use Audio.PlaybackTime(Tag) for everything. Oh man, how did I never think of that? Fixed my capx to include that, but something's not registering with the event. If I do if Audio.PlaybackTime("blank") >= 6.62 (in debug, the time is rounded to 6.62), it'll stop on the f...
by larynachos
Mon Mar 21, 2016 10:23 pm
 
Forum: How do I....?
Topic: Seamless Transition Between Audio Files
Replies: 16
Views: 758

Re: Seamless Transition Between Audio Files

I have no experience with timing of sounds so this is all a complete guesswork, but did you do the timing with the overlapping the pattern with your seekbar? I wouldn't do something what needs a exact timing with a collision or overlapping event. I would put the pattern in an array and use the arra...
by larynachos
Mon Mar 21, 2016 1:40 am
 
Forum: How do I....?
Topic: Seamless Transition Between Audio Files
Replies: 16
Views: 758

Re: Seamless Transition Between Audio Files

I have no experience with timing of sounds so this is all a complete guesswork, but did you do the timing with the overlapping the pattern with your seekbar? I wouldn't do something what needs a exact timing with a collision or overlapping event. I would put the pattern in an array and use the arra...
by larynachos
Thu Feb 25, 2016 10:24 pm
 
Forum: How do I....?
Topic: Seamless Transition Between Audio Files
Replies: 16
Views: 758

Re: Seamless Transition Between Audio Files

Bump. Pls ;-;
by larynachos
Sat Feb 20, 2016 8:02 pm
 
Forum: How do I....?
Topic: Seamless Transition Between Audio Files
Replies: 16
Views: 758
Next

Return to advanced search