User Tools

Site Tools


en:guides:beginners:shooting_and_spawners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:guides:beginners:shooting_and_spawners [2018/06/28 05:15 (6 years ago)] – In line with init projects sausageen:guides:beginners:shooting_and_spawners [2021/07/15 15:10 (3 years ago)] (current) – minor grammar and spelling corrections creampuff
Line 54: Line 54:
 {{:guides:beginners:beginners-32-shooting.png?nolink|}} {{:guides:beginners:beginners-32-shooting.png?nolink|}}
  
-Great so that's working for us. Now, how to stop it from shooting. The function that is available to us for this purpose is: orxObject_Enable()+Greatso that's working for us. Now, how to stop it from shooting. The function that is available to us for this purpose is: orxObject_Enable()
  
-If we disabled our hero object, yes it would shop him from shooting, but it would also make him disappear. Not quite what is expected.+If we disabled our hero object, yes it would stop him from shooting, but it would also make him disappear. Not quite what is expected.
  
 There are a number of ways to solve this situation. Let's go with a simple one. There are a number of ways to solve this situation. Let's go with a simple one.
Line 120: Line 120:
 Compile and run. Compile and run.
  
-Hmmm... his bullets don't go left when the hero faces left. Change the spawner by adding ''ObjectSpeed'' and ''USeRelativeSpeed'' properties:+Hmmm... His bullets don't go left when the hero faces left. Change the spawner by adding ''ObjectSpeed'' and ''UseRelativeSpeed'' properties:
  
 <code=ini> <code=ini>
Line 136: Line 136:
 Compile and Run. Compile and Run.
  
-Fantastic! Our hero can now run, jump and shoot.+Fantastic! Our hero can now run, jumpand shoot.
  
 ---- ----
en/guides/beginners/shooting_and_spawners.1530188112.txt.gz · Last modified: 2018/06/28 08:15 (6 years ago) (external edit)