Search found 56 matches

Re: How do I Move Mobs Into Layout From Outside

Lmao, the solution was literally just to remove the if zombie is outside layout condition, and have them move purely based on position
by larynachos
Fri Feb 16, 2018 4:35 pm
 
Forum: How do I....?
Topic: How do I Move Mobs Into Layout From Outside
Replies: 2
Views: 61

Re: How do I Move Mobs Into Layout From Outside

Getting closer, I've found that if zombie is outside layout if zombie.Y < 0 simulate pressing down This gets the zombie to move down, but it stops before it actually gets onto the layout. So I'm assuming the trigger ends as soon as the first pixel touches the layout; is there a way for me to set a d...
by larynachos
Fri Feb 16, 2018 2:28 am
 
Forum: How do I....?
Topic: How do I Move Mobs Into Layout From Outside
Replies: 2
Views: 61

How do I Move Mobs Into Layout From Outside

I'm working on a zombie game that has zombies spawning off screen (all 4 directions). However, I can't figure out how to make them move onto the layout before they begin wandering/attacking the enemy. I found the if enemy is outside layout statement, but I don't know how to go about making the zombi...
by larynachos
Fri Feb 16, 2018 2:19 am
 
Forum: How do I....?
Topic: How do I Move Mobs Into Layout From Outside
Replies: 2
Views: 61

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: 271

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: 146

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: 271

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: 146

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: 271

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: 10409

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: 800
Next

Return to advanced search