Author Topic: Blitz2D, first program HELP!  (Read 27096 times)

0 Members and 1 Guest are viewing this topic.

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #60 on: January 16, 2011 »
I've been understanding things a lot more and have upgraded the game lots! :D

Although I still have a problem. :(

The smile is able to reach the aliens. And the power is able to be in the alien area. This is a problem because you can cheat by terminating aliens on the top row then go to the top row then you are safe there. I've been editing the code (for months) which makes it so the smile can't go off the edge but I haven't been able to do it. :( Help please? :)

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #61 on: January 30, 2011 »
It's been two weeks and I still haven't solved it. Can anyone help?

Please?

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Blitz2D, first program HELP!
« Reply #62 on: January 30, 2011 »
Plz post your latest code for people to take a look.

Anyway I think checking smile and aliens collision may fix this problem.
Or you can lock smile and power to a certain "y" position, ie below your aliens. Well, it all depends on how you want your game work.
Challenge Trophies Won:

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #63 on: January 31, 2011 »
The smile not being able to reach the area where the aliens are was what I was hoping for. Seeming as you could still cheat. ;)

The game is here though. :)

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Blitz2D, first program HELP!
« Reply #64 on: February 01, 2011 »
Ok, on the line:
Code: [Select]
If y < tiw Then y = tiwchange it to:
Code: [Select]
If y < 240 Then y = 240
This will limit player y position below of aliens positions.

Also you may want to limit power y position, just change this line:
Code: [Select]
image_y=Rnd(0,585+ImageHeight(img_power))to
Code: [Select]
image_y=Rnd(240,585+ImageHeight(img_power))
Challenge Trophies Won:

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #65 on: February 01, 2011 »
Thank you! ;D :D ;D

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #66 on: February 04, 2011 »
I've been trying to create a pause mechanism but it only almost works:



If KeyHit(28) Or KeyHit(156) Then
Goto Pause
EndIf
Goto Resume
.Pause
If KeyHit(1) Then
lives = 0
Goto Resume
EndIf
If KeyHit(28) Or KeyHit(156) Then
FlushKeys
Goto Resume
EndIf
Goto Pause
.Resume



It doesn't work because if you keep it on pause then if there is power then the power goes when resumed and if there isn't power then if you keep it on pause then when resumed the power appears and if the speed = 2 then if you keep it on pause then when resumed the speed = 1.

This is another thing I've been trying to work out for months.

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #67 on: February 08, 2011 »
Could anyone help? :'(

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Blitz2D, first program HELP!
« Reply #68 on: February 09, 2011 »
Insert this code before "Flip" command:

Code: [Select]
;Pause game
If KeyHit(25) Then ;Press "P" to pause
While Not KeyHit(25)
Text 425,300,"Game Paused",1,1
Flip
Wend
EndIf

When you press "P" it'll enter on infinite loop and a text message will be show to the user, pressing "P" again will exit this loop, hope that help :)

Challenge Trophies Won:

Offline billy bob

  • C= 64
  • **
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #69 on: February 09, 2011 »
Thanks, but, sorry. That wasn't the problem. It doesn't work because if you keep it on pause then if there is power then the power goes when resumed and if there isn't power then if you keep it on pause then when resumed the power appears and if the speed = 2 then if you keep it on pause then when resumed the speed = 1.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Blitz2D, first program HELP!
« Reply #70 on: April 16, 2011 »
Anyone's first program is always a real git, unless that is your perfect at everything & how are you doing with this Billy Bob?
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won: