Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 04:47:05 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Sprite(or coding) problem -  (Read 317 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Today at 00:24:25
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3705


Topic starter
Total Post Ratings: +260

View Profile
« on: 28 September, 2011, 01:45:30 »
0

So, I was just messing around with Axe again, and I couldn't get this:
Whenever I press 2nd, the bar decreases as it's on air, and when the bar is depleted, stick should go back to running animation.
The problem is: how do I make it happen? I know why the sprite is disappearing, but I don't know how to fix it. XP

Screenshot to see the problem visually.


Spoiler for code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
:.ARUN
:prgmθθ
:[000C3D8E50380402]→Str1
:[000C1C2C1328C404
:[000C0C1830103050
:[000C1C2C1328C404
:[0C4D3E10102C2240
:[7EFFFFFFE7662442→Str2
:[000E314040310E00
:[00708C02028C7000
:[7EFFFFFFFF7E3C7E→Str3
:[000E3F7F7F3F0E00
:[0070FCFEFEFC7000
:0→A→C→M
:4→S
:20→J
:Repeat getKey(15)
:¦ If A=4:0→A:End
:C+S→C
:ClrDraw
:ClrDrawr
:
:Pt-Off(70-C,48,Str2)
:Pt-Off(70-C,48,Str3)r
:Pt-Off(135-C,48,Str3)r
:Pt-Off(135-C,48,Str2)
:Pt-Off(210-C,48,Str2)
:Pt-Off(210-C,48,Str3)r
:Pt-Off(3223-C,48,Str2)
:Pt-Off(3223-C,48,Str3)r
:Line(0,56,94,56
:Line(0,56,94,56)r
:Pt-Off(80-C,10,Str2+8)
:Pt-Off(80-C,10,Str3+8)r
:Pt-Off(88-C,10,Str2+16
:Pt-Off(88-C,10,Str3+16)r
:Pt-Off(250-C,18,Str2+8
:Pt-Off(250-C,18,Str3+8)r
:Pt-Off(258-C,18,Str2+16
:Pt-Off(258-C,18,Str3+16)r
:Pt-Off(305-C,48,Str4
:Pt-Off(305-C,48,Str5)r
:Pt-Off(313-C,40,Str5
:Pt-Off(313-C,40,Str4)r
:Pt-Off(313-C,48,Str4+16
:Pt-Off(313-C,48,Str5+16)r
:Pt-Off(321-C,48,Str4+16
:Pt-Off(321-C,48,Str5+16)r
:Pt-Off(321-C,40,Str5+8
:Pt-Off(321-C,40,Str4+8)r
:Pt-Off(329-C,48,Str4+8
:Pt-Off(329-C,48,Str5+8)r
:Line(2,2,2,4
:Line(2,2,20,2
:Line(20,2,20,4
:Line(2,4,20,4
:Line(3,3,J-1,3
:Line(3,3,J-1,3)r
:!If getKey(54)
:Pt-Change(10,48,8*A+Str1
:Pt-Change(10,48,8*A+Str1)r
:!If J=20
:J+1→J
:End
:End
:If getKey(54) and (J>4)
:Pt-Change(10,40,32+Str1)r
:Pt-Change(10,40,32+Str1)
:J-1→J
:End
:If getKey(2):S-1→S:End
:If getKey(3):S+1→S:End
:If S<2:2→S:End
:If S>40:40→S:End
:
:A+1→A
:If A=4:0→A:M+1→M:End
:DispGraphrr
:Pause 70
:End
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 18:40:52
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #1 on: 28 September, 2011, 01:52:14 »
0

ohhh. easy (i think)

easyies way to explain is by telling you.  Hold down 2nd while jumping and you should see.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 07:32:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5645


Total Post Ratings: +589

View Profile
« Reply #2 on: 28 September, 2011, 01:52:38 »
0

You have 2 conditions for displaying the sprite correct?  The first condition is :!If getKey(54), under which it will display the person on the floor. Under the condition :If getKey(54) and (J>4) the person will be displayed in the air.  Now, when neither of these conditions are met, the person is not displayed at all.  Do you see when this happens?
Logged

Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Today at 00:24:25
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3705


Topic starter
Total Post Ratings: +260

View Profile
« Reply #3 on: 28 September, 2011, 01:56:05 »
0

yea, I got that. But I don't know what to do XP
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 18:40:52
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #4 on: 28 September, 2011, 01:58:32 »
0

:If getKey(54) and (J>4)
:Pt-Change(10,40,32+Str1)r
:Pt-Change(10,40,32+Str1)
:J-1→J
:End

to

:If getKey(54)*not(Q) and (J>4)
:1->Q
:end
:if Q
:Pt-Change(10,40,32+Str1)r
:Pt-Change(10,40,32+Str1)
:!If J-1→J
:->Q
:End
:End

« Last Edit: 28 September, 2011, 02:26:26 by Happybobjr » Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 07:32:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5645


Total Post Ratings: +589

View Profile
« Reply #5 on: 28 September, 2011, 02:00:16 »
0

Well we need to update the conditions, because what happens when the player is pressing 2nd but he is out of power?  He should be on the ground right?  Currently though there is no condition to handle this.  Adding this condition, or modifying the current conditions, would help make this work. 

EDIT:  Happybobjr, won't that make it possible for the player to be in the air even when 2nd is not being held?
« Last Edit: 28 September, 2011, 02:01:52 by Builderboy » Logged

Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 18:40:52
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #6 on: 28 September, 2011, 02:26:48 »
0

not anymore.  good catch.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.191 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.