Search found 1110 matches
- Tue May 19, 2015 12:48 am
- Forum: Q&A Discussion
- Topic: Help using Read Map Block for animation
- Replies: 6
- Views: 1486
- Mon May 18, 2015 11:31 pm
- Forum: Q&A Discussion
- Topic: Help using Read Map Block for animation
- Replies: 6
- Views: 1486
Help using Read Map Block for animation
I am attempting to get the following script to work in my game. I have an animated set of tiles which is meant to look like a spike popping in and out of the ground. I only want this spike to harm the hero when it is out of the ground so I have made this script: script, harmSpike, begin if(r...
- Fri May 08, 2015 12:17 am
- Forum: Q&A Discussion
- Topic: Arcing Projectiles
- Replies: 24
- Views: 6573
- Thu May 07, 2015 8:21 pm
- Forum: Q&A Discussion
- Topic: Arcing Projectiles
- Replies: 24
- Views: 6573
Hmm that movesliceto function seems useful, I'll have to keep that in mind for my own game. Thinking further on this I think doing this mathematically may have some advantage. If for example you're making a tank game in which players take turns shooting projectiles through the air at one another the...
- Thu May 07, 2015 6:25 pm
- Forum: Q&A Discussion
- Topic: Arcing Projectiles
- Replies: 24
- Views: 6573
- Thu May 07, 2015 5:50 pm
- Forum: Q&A Discussion
- Topic: Arcing Projectiles
- Replies: 24
- Views: 6573
Yeah I assumed 2D coordinates too. My method will work for shooting enemies up on a hill, it just requires a collision detection script in the autorun script's while loop, which checks for collisions between the arrow and the enemy each tick. I think using a collision detection would make msw188's s...
- Thu May 07, 2015 5:00 am
- Forum: Q&A Discussion
- Topic: Arcing Projectiles
- Replies: 24
- Views: 6573
Yeah it's the simplest way I know, I plan to continue using this concept for the rest of my own game. Another great thing about using a timer with phases is that you can increase the number of phases and update the arrow's sprite art each phase, thus making it look like the arrow is always tangentia...
- Thu May 07, 2015 2:20 am
- Forum: Q&A Discussion
- Topic: Arcing Projectiles
- Replies: 24
- Views: 6573
- Tue May 05, 2015 9:18 pm
- Forum: Q&A Discussion
- Topic: Help, I'm having a weird problem in my game
- Replies: 9
- Views: 2021
I would, only it's difficult with the way my games scripted. For example I need a script which shoots bullets from a player, then one which checks if that bullet collides with anything that can be killed and destroys the slice if necessary, then a timer that destroys the bullet if it's been on scree...
- Mon May 04, 2015 5:24 am
- Forum: Q&A Discussion
- Topic: Help, I'm having a weird problem in my game
- Replies: 9
- Views: 2021
- Sun May 03, 2015 3:28 pm
- Forum: Q&A Discussion
- Topic: Help, I'm having a weird problem in my game
- Replies: 9
- Views: 2021
- Sat May 02, 2015 6:53 pm
- Forum: Q&A Discussion
- Topic: Help, I'm having a weird problem in my game
- Replies: 9
- Views: 2021
I figured it out, kind of... Thanks to the slice tree I narrowed the script down to about 1000 lines of code in which the error may be occurring. The slice being produced was actually a Laser from an NPC who I had already destroyed. I had conditions to make sure that NPCs shooting script could not c...
- Sat May 02, 2015 8:18 am
- Forum: Q&A Discussion
- Topic: Help, I'm having a weird problem in my game
- Replies: 9
- Views: 2021
Help, I'm having a weird problem in my game
I just noticed this weird problem in my game. In the game I have guards which walk around and shoot you if you are in their line of sight. The lasers they shoot are coded to originate from the NPC, this seems to always work. But occasionally when I face certain directions with my hero while they are...
- Thu Apr 30, 2015 2:55 pm
- Forum: Q&A Discussion
- Topic: How to make bullet originate from enemy (walktall)?
- Replies: 6
- Views: 1515
Well, for myself, the main advantage of keeping enemies and projectiles as siblings in my own scripts is that I can easily loop through them and run scripts that update them each tick. That might not be something you want to do for your game, so you might prefer to stick with the parenting methods ...
- Thu Apr 30, 2015 1:57 pm
- Forum: Q&A Discussion
- Topic: How to make bullet originate from enemy (walktall)?
- Replies: 6
- Views: 1515